1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
CheckBox1=new JCheckBox("Base d'environnements naturels",false);
// JCheckBox CheckBox1 = new JCheckBox("A1",false);
DownloadPanel.add(CheckBox1,checkBoxConstraint);
checkBoxConstraint.gridx = 0;
checkBoxConstraint.gridy = 1;
checkBoxConstraint.weightx = 2.0;
CheckBox2 = new JCheckBox("A2",false);
DownloadPanel.add(CheckBox2,checkBoxConstraint);
checkBoxConstraint.gridx = 0;
checkBoxConstraint.gridy = 2;
CheckBox3 = new JCheckBox("A3",false);
DownloadPanel.add(CheckBox3,checkBoxConstraint);
checkBoxConstraint.gridx = 0;
checkBoxConstraint.gridy = 3;
CheckBox4 = new JCheckBox("A4",false);
DownloadPanel.add(CheckBox4,checkBoxConstraint);
checkBoxConstraint.gridx = 0;
checkBoxConstraint.gridy = 3;
//-----------------------Text field creation
checkBoxConstraint.gridx=0;
checkBoxConstraint.gridy=4;
JTextField TextField1 =new JTextField("JFDJDFSJDFJ",20);
DownloadPanel.add(TextField1,checkBoxConstraint);
checkBoxConstraint.gridx=0;
checkBoxConstraint.gridy=7;
buttonReset = new JButton("Reset");
buttonReset.addActionListener(this);
DownloadPanel.add(buttonReset,checkBoxConstraint);
checkBoxConstraint.gridx=0;
checkBoxConstraint.gridy=8;
buttonSave = new JButton("Save");
DownloadPanel.add(buttonSave,checkBoxConstraint); |
Partager