editing the default section and making an array of buttons

lagrace

New Member
As I drag and drop a button in netbeans,code generator generates the code like :\[code\]private javax.swing.JButton jButton1;private javax.swing.JButton jButton2;private javax.swing.JButton jButton3;\[/code\]What if I want an array of these buttons ? How do I edit this in netbeans ?Like :\[code\]private javax.swing.JButton buttonArray[] = new JButton[3];\[/code\]Note: I am using netbeans 7.3
 
Back
Top