aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes How to Disable Java Logo in Dialogs? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "How to Disable Java Logo in Dialogs?" Watch "How to Disable Java Logo in Dialogs?" New topic
Author

How to Disable Java Logo in Dialogs?

Jerry Selend
Greenhorn

Joined: Oct 30, 2002
Posts: 3
Some of my dialogs have the Java logo in the top left. How do I remove the logo?
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
dialogs inherit the logo from their parent.

to remove the icon from a JFrame, use
setIconImage(new ImageIcon("doesNotExist.gif").getImage());,or
frame.setIconImage(new ImageIcon("doesNotExist.gif").getImage());

where "doesNotExist.gif" is the name of a non-existing image file.
if you pass null as the argument, the default icon will be used.

[EDIT]
forgot to add, you also need to use
super(parent);
in the dialog's constructor
[ May 28, 2006: Message edited by: Michael Dunn ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to Disable Java Logo in Dialogs?