This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Disable Java Logo in Dialogs?