22 lines
675 B
Java
22 lines
675 B
Java
|
import javax.swing.*;
|
||
|
import java.awt.*;
|
||
|
|
||
|
public class Question {
|
||
|
public static void main(String[] args) {
|
||
|
JFrame fenetre = new JFrame();
|
||
|
fenetre.setSize(500,300);
|
||
|
fenetre.setMinimumSize(new Dimension(300, 200));
|
||
|
GridLayout gestionnaire = new GridLayout(3,3);
|
||
|
fenetre.setLayout(gestionnaire);
|
||
|
JPanel panneau = new JPanel();
|
||
|
JButton bouton = new JButton("Oui");
|
||
|
panneau.add(bouton);
|
||
|
JButton bouton2 = new JButton("Non");
|
||
|
panneau.add(bouton2);
|
||
|
JButton bouton3 = new JButton("NSPP");
|
||
|
panneau.add(bouton3);
|
||
|
fenetre.add(panneau);
|
||
|
fenetre.setVisible(true);
|
||
|
}
|
||
|
}
|