Ajout d'une toolbar
This commit is contained in:
@@ -16,12 +16,23 @@ public class AppThinkerWindow extends JFrame {
|
||||
try { img = ImageIO.read(AppThinker.class.getResource("img/logoAppThinker.png")); } catch (Exception ex) { }
|
||||
this.setIconImage(img);
|
||||
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
this.setLocation(0, 0);
|
||||
this.setSize(500, 500);
|
||||
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
this.setLocationRelativeTo(null);
|
||||
|
||||
//Ajout du menu à la fenêtre
|
||||
AppThinkerMenuBar menu = new AppThinkerMenuBar();
|
||||
this.setJMenuBar(menu);
|
||||
|
||||
//Ajout de la toolbar à la fenêtre
|
||||
AppThinkerToolbar toolbar = new AppThinkerToolbar();
|
||||
this.add(toolbar, BorderLayout.NORTH);
|
||||
|
||||
//Ajout de la grille à la fenêtre
|
||||
AppThinkerGrid grid = new AppThinkerGrid();
|
||||
this.add(grid, BorderLayout.CENTER);
|
||||
|
||||
//Ajout de la statusbar à la fenêtre
|
||||
AppThinkerStatusbar statusbar = new AppThinkerStatusbar();
|
||||
this.add(statusbar, BorderLayout.SOUTH);
|
||||
this.pack();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user