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
| import conf.*;
import javax.swing.*;
import java.awt.event.*;
import java.awt.*;
public class FenetreBis extends JFrame implements ActionListener,ItemListener{
// evenement du au choix d'une des comboBox
public void itemStateChanged(ItemEvent event){
int choix = DecalEteHiverBox.getSelectedIndex();
int choix1 = AffichageBox.getSelectedIndex();
int choix2 = DecalBox.getSelectedIndex();
int choix3 = DecalautoBox.getSelectedIndex();
int choix4 = LanguesBox.getSelectedIndex();
int choix5 = LuminositeBox.getSelectedIndex();
System.out.println("le choix pays décalage est" + choix);
System.out.println("le choix affichage 12/24 est" + choix1);
System.out.println("le choix décalage horaire est" + choix2);
System.out.println("le choix changement auto est" + choix3);
System.out.println("le choix langue est" + choix4);
System.out.println("le choix luminosité" + choix5);
System.out.println("adresse mac" + mac);
}
} |
Partager