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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
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: 688

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: 10376
    
    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: 688

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: 10376
    
    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: 688

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: 19696
    
  20

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