array of buttons .. wut do u thik right?
here is the code i tried to create a bunch of JButtons in the frame ..
wut is between the comments wut i tried and didn't work for me ..
wut is my mistake .. please clearly explain to me .. oh by the way i don't want in my application to set a listener for my buttons ..
i just want to show it ..
regards
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
publicclass buttonsextends JFrame
{
publicfinalint w = 200;
publicfinalint h = 200;
JFrame frm =new JFrame();
//JButton [] set = new JButton (10);
public buttons ()
{
/*for (int i = 0; i=set.length();i++)
{
set.add(i);
}*/
//frm.add(set);
frm.setSize(200,200);
frm.setVisible(true);
}
publicstaticvoid main(String[]args)
{
new buttons();
}
}

