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
posted
0
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 ]