Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Remove Java Icon

 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
[Thumbnail for untitled.JPG]
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JFrame#setIconImage(Image iconImage) will replace the coffee cup with the iconImage
 
Nishan Patel
Ranch Hand
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 689
Eclipse IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20495
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As Maneesh said, create a 1x1 transparent image. You can use BufferedImage for that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic