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
| JFrame fenreg = new JFrame();
fenreg.setTitle("Réglages/Setup");
JPanel container1 = new JPanel();
container1.setLayout(null);
JButton boutton1 = new JButton("Annuler");
boutton1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent event)
{System.exit(0);} });
JButton boutton = new JButton("Valider");
boutton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent event)
{//Actions du bouton valider 2
}});
final JComboBox jl = new JComboBox();
jl.setBounds(10,20,200,40);
jl.addItem("Langue");
jl.addItem("Français");
jl.addItem("English");
jl.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e) {}});
final JComboBox jl2 = new JComboBox();
jl2.setBounds(250,20,200,40);
jl2.addItem("Fréquence du timer");
jl2.addItem("1s");
jl2.addItem("5s");
jl2.addItem("10s");
container1.add(jl2);
jl2.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e) {
}}); |