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 ?>

[1674 byte] By [panji_tengkoraka] at [2007-11-27 4:29:51]
# 1

Change the view from Form to Source and it will display the actual "behind the scenes" code. There are protected areas that the editor locks and won't allow you to edit (in Netbeans anyway).

Once created, you can reference it back in the Form view by reference in the code properties pages of actions or other objects on screen.

watertownjordana at 2007-7-12 9:38:59 > top of Java-index,Java Essentials,New To Java...
# 2
You should see a button or drop-down on the MDI window's top left side.
watertownjordana at 2007-7-12 9:38:59 > top of Java-index,Java Essentials,New To Java...