Hi.. I am having the following problem. I want to diplay no of button in a window (using GridLayout) but the no of buttons I want to create is coming from an argument. for e.g. if the arg = 50 I want to create 50 different Jbuttons. So if anyone has any idea..Please help me...
thanks Pratik
ravindran shanmugam
Greenhorn
Joined: Aug 30, 2001
Posts: 15
posted
0
public static void main(String args[]) { JButton jb[] = new JButton[Integer.parseInt(args[0])]; jb[0] = new JButton("df"); jb[1] = new JButton("dfsd"); // and then add it to the required frame }