This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am trying to create my application using Netbeans GUI Builder, but I have a situation here.
When I drag and drop a component(Jlabel or any other used defined component) to JPanel from Palette window of GUI Builder, the Java code is automatically added by the Netbeans. For eg. the following code is generated:
Now I have a ArrayList which need to store the component objct which is added by GUIBuilder. In this case the object added is jLabel1.
So I need to store this object in this ArrayList. Infact I need the new component object to be automatically added to this list, whenever a new component is added by GUIBuilder.
Since GUIBuilder generates the Java code for added component automatically, how do I make GUIBuilder to update this ArrayList automatically whenever a new component is added?