import java.awt.Container;
import javax.swing.WindowConstants;
public class AppAllComArray extends javax.swing.JFrame{
public static void main(String args[]) {
new AppAllComArray();
}
public AppAllComArray(){
Container con=getContentPane();
con.setLayout(null);
setBounds(100,100,350,400);
setTitle("Thanawat 144");
setVisible(true);
setDefaultCloseOperation (javax.swing.WindowConstants.EXIT_ON_CLOSE);
int r=0;
String[] an={"cat","dog","rat","elephant","cow","snake","bird","turtle","horse","rabbit"};
String[] na={"Danish","Finnish","Irish","Norwegian","Swedish","Latvian","English","Austrian","Belgian","French"};
cbbNumber=new javax.swing.JComboBox();
cbbNumber.setBounds(230,30,90,30);
for(int i=2500;i<=2580;i++){
cbbNumber.addItem(""+i);
}
con.add(cbbNumber);
group1=new javax.swing.ButtonGroup();
for(int i=0;i<10;i++){
CKB1=new javax.swing.JCheckBox(an[r]);
CKB1.setBounds(30,30+i*30,90,30);
con.add(CKB1);
RDO1=new javax.swing.JRadioButton(na[r]);
RDO1.setBounds(130,30+i*30,90,30);
con.add(RDO1);
group1.add(RDO1);
r++;
}
}
private javax.swing.JComboBox cbbNumber;
private javax.swing.JCheckBox CKB1;
private javax.swing.ButtonGroup group1;
private javax.swing.JRadioButton RDO1;
}