This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff 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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP 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 ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to Disable Java Logo in Dialogs?