APL/APL2.1/TP3/Question.java

22 lines
675 B
Java
Raw Normal View History

2022-02-07 16:15:08 +01:00
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);
}
}