File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "very simple question..." Watch "very simple question..." New topic

very simple question...

Josh Tambini

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");

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

Joel McNary

Joined: Aug 20, 2001
Posts: 1824

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 ]
I agree. Here's the link:
subject: very simple question...
It's not a secret anymore!