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 39 40 41 42 43 44 45 46 47
| try {
connexion con= new connexion();
//Controle explicite
if(jRadioButton9.isSelected()){
con.RemplirRep("Très satisfaisante", WIDTH, 4);
}
if(jRadioButton10.isSelected()){
con.RemplirRep("Peu satisfaisante", WIDTH, 4);
}
if(jRadioButton11.isSelected()){
con.RemplirRep("Pas satisfaisante", WIDTH, 4);
}
if(jRadioButton12.isSelected()){
con.RemplirRep("Oui", WIDTH, 5);
}
if(jRadioButton13.isSelected()){
con.RemplirRep("Non", WIDTH, 5);
}
// Q3 DE CONTROLE EXPLICITE //
for(boxS=0;boxS<5;boxS++)
{
if(jCheckBox(boxS).isSelected())
{
Coche.add(boxS);
}
boxS=1;
if(Coche.size()==1)
{
con.RemplirRep(jCheckBox(Coche.get[boxS]).getText(), WIDTH, 6);
}
boxS=1;
if(Coche.size()==2) {
con.RemplirRep(jCheckBox(Coche.get[boxS]).getText()+',' + jCheckBox(Coche.get[boxS++]).getText(), WIDTH, 6);
}
boxS=1;
if(Coche.size()==3) {
con.RemplirRep(jCheckBox(Coche.get[boxS]).getText()+',' + jCheckBox(Coche.get[boxS++]).getText()+, + jCheckBox(Coche.get[boxS++]).getText(), WIDTH, 6);
}
boxS=1;
if(Coche.size()==4) {
con.RemplirRep(jCheckBox(Coche.get[boxS]).getText()+',' + jCheckBox(Coche.get[boxS++]).getText()+, + jCheckBox(Coche.get[boxS++]).getText()+, + jCheckBox(Coche.get[boxS++]).getText(), WIDTH, 6);
}
boxS=1;
if(Coche.size()==5) {
con.RemplirRep(jCheckBox(Coche.get[boxS]).getText()+',' + jCheckBox(Coche.get[boxS++]).getText()+, + jCheckBox(Coche.get[boxS++]).getText()+, + jCheckBox(Coche.get[boxS++]).getText()+, + jCheckBox(Coche.get[boxS++]).getText(), WIDTH, 6);
} |
Partager