• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

very simple question...

 
Josh Tambini
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i want to remove the java icon from my jframe..and to leave it clean(no icon at all)
i've tried this for e.g:

JFrame jf = new JFrame("Test");
jf.setIconImage(null);

but with no avail...anyidea how to set it to "no icon" status???

10x
 
Joel McNary
Bartender
Posts: 1840
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is a Swing question thing, so I'm moving it to the Swing forum -- you'll get better results there.
 
Vidya Sethuraman
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which is the Swing Forum in JKavaRanch. I thought there was only one forum for Swing i.e., Swing/AWT.SWT/JFace.
 
Craig Wood
Ranch Hand
Pie
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In the Method Detail section of the JFrame and Frame api for the setIconImage(Image image) method it says that if the image parameter is null then the default icon image will be used, depending on the platform. You can try a blank image.

[ December 28, 2004: Message edited by: Craig Wood ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic