Skip to Main Content

Java Programming

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!

set name of JFrame in Netbeans

807580Aug 27 2009 — edited Aug 27 2009
Hi,

I am using the GUI builder in netbeans to create my application.

This means that all the components are created in InitComponents() and I cannot access these components to change them.

What I need to be able to do is to give my JFrame a name so that I can set properties on the Frame.

Ultimately what I want to be able to do is to change the IconImage on top left.( I do not want to use the properties window to do this)

I want to be able to say something like frame.iconImage("icon.gif");

So how do I set the name of the JFrame in Netbeans?

Thanks in Advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 24 2009
Added on Aug 27 2009
1 comment
1,067 views