This week's book giveaway is in the JavaScript forum.
We're giving away four copies of JavaScript Promises Essentials and have Rami Sarieddine on-line!
See this thread 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 JavaScript Promises Essentials this week 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?