21 lines
474 B
Java
21 lines
474 B
Java
import javax.swing.*;
|
|
import java.awt.*;
|
|
|
|
public class MainSautoir {
|
|
public static void main(String[] args){
|
|
JFrame frame = new JFrame("Sautoir");
|
|
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
|
|
|
|
|
GridLayout gestionnaire = new GridLayout(2, 5);
|
|
frame.setLayout(gestionnaire);
|
|
|
|
|
|
Sautoir instance = new Sautoir();
|
|
|
|
frame.add(instance);
|
|
frame.setSize(500,500);
|
|
frame.setLocation(500,250);
|
|
frame.setVisible(true);
|
|
}
|
|
} |