This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes How to Remove Java Icon Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
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: 684

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: 10167
    
    8

JFrame#setIconImage(Image iconImage) will replace the coffee cup with the iconImage


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Nishan Patel
Ranch Hand

Joined: Sep 07, 2008
Posts: 684

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: 10167
    
    8

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: 684

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: 19651
    
  18

As Maneesh said, create a 1x1 transparent image. You can use BufferedImage for that.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Remove Java Icon
 
Similar Threads
Could we remove the Java cup icon from JFileChooser dialog?
Modal Dialog without java coffee cup icon.
JOptionPane.showInternalXxxDialog and window icon
removing bottomline from frame, how-to?
change java icon swing