Create Array Object -> Netbeans Editor ?
Hi All,
How to create array object (class) on netbeans editor.
i have code like this. this code write for manually (not user netbeans)
import javax.swing.*;
import java.awt.*;
publicclass arrObjextends JFrame{
public arrObj(){
super("Array Object");
setLayout(new GridLayout());
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setSize(500,500);
initcomp();
}
void initcomp(){
JButton jb[] =new JButton[5];
for(int i=0;i<jb.length;i++){
jb[i]=new JButton("Button" + i);
add(jb[i]);
}
}
publicstaticvoid main(String[] args){
new arrObj().setVisible(true);
}
}
how to enter this code if i use GUI Form ?>

