• Post Reply Bookmark Topic Watch Topic
  • New Topic

Remove default window icon from JFrame

 
kirba devi
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm creating a JFrame, and In the top left corner there is an icon, a little coffee cup... I tried setIconImage(null) but the api docs say that that loads the default icon, which is the coffee cup in this case.

Can I completely remove that icon? I dont want to display my own, I just dont want it there!
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try supplying your own icon as a single-pixel transparent GIF.
 
Quang Pham
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kirba
Have you got it to work? I have the same question as you do. Let me know how you got it done.
Thanks
Quang
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!