數組作爲我拖在NetBeans下降一個按鈕,代碼生成器生成類似的代碼:編輯默認部分,使按鈕
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
如果我想這些按鈕的陣列?我如何在NetBeans中編輯這個?
像:
private javax.swing.JButton buttonArray[] = new JButton[3];
注:我使用NetBeans 7.3
+1手建築(ps,打我;)) – MadProgrammer 2013-04-05 00:46:56
@MadProgrammer:對你也是,1+ – 2013-04-05 00:50:24