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!

WindowBuilder generated code

818687Dec 11 2010 — edited Dec 11 2010
Hi,
When using NetBeans for UI development, developers add components to a frame (that extends JFrame) , change components' properties etc., the IDE generates some relevant code and puts it in initComponents(). initComponents is under the control of the IDE and developers are warned not to modify it. If I want to add some code regarding the Frame initialization, I add it to the ctor and I am sure the IDE will not touch it.
On the other hand, when using WindowBuilder for Eclipse the IDE generated code goes straight in the frame's ctor. My question is:
Where do I put my frame's initialization code so that we (me and the IDE) dont step on each other toes?

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 8 2011
Added on Dec 11 2010
1 comment
201 views