Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JFrame Titlebar icon

807599Feb 24 2007 — edited Feb 24 2007
Hi.
I am trying to endow a simple game with a GUI using the designing tool of NetBeans 5.5, thus I added a JFrame Form to my existing project. In the form'properties, where it says iconImage I added the following piece of code:
new javax.swing.ImageIcon("images/Icon.gif").getImage()
In the source of the form it appears as:
setIconImage(new javax.swing.ImageIcon("images/Icon.gif").getImage());
The program compiles without any error but the icon is not displayed! Am I missing something???

Regards
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 24 2007
Added on Feb 24 2007
24 comments
303 views