Interviewer And Interviewee Guide

Java GUI Framework Interview Question:

How to replace/remove the icon in the title bar (window decoration) of a [J]Frame?

Submitted by: Administrator
Use setIconImage().

To revert to the platform's default icon use:

frame.setIconImage(null);

On some platforms this might remove the icon. Alternatively you can try a transparent Image if you don't want to have an icon.
Submitted by: Administrator

Read Online Java GUI Framework Job Interview Questions And Answers
Copyright 2007-2025 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.