Vїяġїи Ĝϋί£Ð
Would you like to react to this message? Create an account in a few clicks or log in to continue.


 
บ้านLatest imagesสมัครสมาชิก(Register)เข้าสู่ระบบ(Log in)

 

 AppAllComArray

Go down 
ผู้ตั้งข้อความ
Angel-beats
ﻬ௫ﻬAdminﻬ௫ﻬ
ﻬ௫ﻬAdminﻬ௫ﻬ
Angel-beats


ชื่อในเกม : Novas
ค่าขยัน : 35
ค่าขนม : -4730
คะแนน : 0

AppAllComArray Empty
ตั้งหัวข้อเรื่อง: AppAllComArray   AppAllComArray Icon_minitime11/2/2014, 04:12

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;
}
ขึ้นไปข้างบน Go down
http://virgin.wow3.info
 
AppAllComArray
ขึ้นไปข้างบน 
หน้า 1 จาก 1

Permissions in this forum:คุณไม่สามารถพิมพ์ตอบ
Vїяġїи Ĝϋί£Ð :: General Zone :: Java-
ไปที่: