package main; import javax.swing.*; import java.awt.*; public class View extends JFrame { private JButton boutonExport= new JButton("Exporter"); private JButton boutonReset = new JButton("Décocher cases"); private JPanel pan = new JPanel(); private GridLayout grid = new GridLayout(); public static void main(String[] args){ new View(); } public View(){ this.setTitle("Jul Project"); this.setSize(800, 800); this.setLocationRelativeTo(null); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.setLayout(new BorderLayout()); this.getContentPane().add((pan), BorderLayout.SOUTH); pan.add(boutonExport); pan.add(boutonReset); this.setVisible(true); } }