This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes very simple question... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "very simple question..." Watch "very simple question..." New topic
Author

very simple question...

Josh Tambini
Greenhorn

Joined: Nov 30, 2004
Posts: 24
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

Joined: Aug 20, 2001
Posts: 1817

This is a Swing question thing, so I'm moving it to the Swing forum -- you'll get better results there.


Piscis Babelis est parvus, flavus, et hiridicus, et est probabiliter insolitissima raritas in toto mundo.
Vidya Sethuraman
Ranch Hand

Joined: Sep 28, 2003
Posts: 45
Which is the Swing Forum in JKavaRanch. I thought there was only one forum for Swing i.e., Swing/AWT.SWT/JFace.


Vidya <br />(SCJP 1.4)
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
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 ]
 
 
subject: very simple question...
 
Similar Threads
disabling minimize icon in JFrame
Lets play a word game...
icon on JFrame
ICON at titlebar
icon changing