Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 Badass: Making Users Awesome this week in the Game Development 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

How to Disable Java Logo in Dialogs?

Jerry Selend

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.

forgot to add, you also need to use
in the dialog's constructor
[ May 28, 2006: Message edited by: Michael Dunn ]
I agree. Here's the link:
subject: How to Disable Java Logo in Dialogs?