Author
How to Remove Java Icon
Nishan Patel
Ranch Hand
Joined: Sep 07, 2008
Posts: 676
I have created Frame and Dialog. I want to remove Java Icon which is display at every frame and dialog corner so, How can I do this ???
Please find attached screen shot for details.
untitled.JPG
Thanks, Nishan Patel
SCJP 1.5, SCWCD 1.5, OCPJWSD Java Developer ,My Blog
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8439
JFrame#setIconImage(Image iconImage) will replace the coffee cup with the iconImage
[Donate a pint, save a life! ] [How to ask questions ] [Onff-turn it on! ]
Nishan Patel
Ranch Hand
Joined: Sep 07, 2008
Posts: 676
But what If I don't want that image to my Frame or dialog. I know the way how to set another image but what if don't want to use Image at frame or dialog.
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8439
Create a placeholder image which is 1px x 1px and use it.
Setting it to null will display the coffee cup
Nishan Patel
Ranch Hand
Joined: Sep 07, 2008
Posts: 676
so, is it necessary to put image at that place ? without that, is there any method that help me to solve that problem ??
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
As Maneesh said, create a 1x1 transparent image. You can use BufferedImage for that.
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
subject: How to Remove Java Icon