this.lheurePM.setBounds(20, 240, 180, 30);
String[] dataCoef = {"45", "60", "90"};
SpinnerModel modelCoef = new SpinnerListModel(dataCoef);
this.sCoef = new JSpinner(modelCoef);
this.sCoef.setBounds(180, 20, 100, 30);
String[] data = {"Initiation", "Entrainement"};
SpinnerModel model = new SpinnerListModel(data);
this.sDiff = new JSpinner(model);
this.sDiff.setBounds(180, 60, 100, 30);
this.sbAvance = new JCheckBox("Activer les options avanc�es");
this.sbAvance.setBounds(300, 20, 200, 30);
this.sbAvance.addChangeListener(this);
this.bValider = new JButton("Valider");
this.bValider.setBounds(220, 300, 100, 30);
this.bValider.addActionListener(this);
String[] dataHeure = new String[24];
for(int i = 0; i < 24; i++){
dataHeure[i] = String.valueOf(i);
}
SpinnerModel modelHeure = new SpinnerListModel(dataHeure);
this.sHeure = new JSpinner(modelHeure);
this.sHeure.setBounds(220, 200, 150, 30);
this.sHeure.setEnabled(false);
String[] dataHeurePM = new String[12];
for(int i = 0; i < 12; i++){
dataHeurePM[i] = String.valueOf(i);
}
SpinnerModel modelHeurePM = new SpinnerListModel(dataHeurePM);
this.sHeurePM = new JSpinner(modelHeurePM);
this.sHeurePM.setBounds(220, 240, 150, 30);
this.sHeurePM.setEnabled(false);
this.add(this.lCoef);
this.add(this.lDiff);