aspose file tools
The moose likes Swing / AWT / SWT and the fly likes How to Remove Java Icon Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "How to Remove Java Icon" Watch "How to Remove Java Icon" New topic
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.


[Thumbnail for 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
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to Remove Java Icon
 
Similar Threads
JOptionPane.showInternalXxxDialog and window icon
removing bottomline from frame, how-to?
change java icon swing
Modal Dialog without java coffee cup icon.
Could we remove the Java cup icon from JFileChooser dialog?