2020-11-21 15:01:19 +01:00
|
|
|
import javax.imageio.ImageIO;
|
|
|
|
|
import javax.swing.*;
|
|
|
|
|
import java.awt.*;
|
|
|
|
|
|
|
|
|
|
public class AppThinkerWindow extends JFrame {
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Constructeur de la classe AppThinkerWindow
|
|
|
|
|
* @author V.BOULANGER
|
|
|
|
|
*/
|
|
|
|
|
public AppThinkerWindow(){
|
2020-11-21 16:28:55 +01:00
|
|
|
//Paramétrage de la fenêtre
|
2020-11-21 15:01:19 +01:00
|
|
|
this.setTitle("AppThinker");
|
|
|
|
|
this.setExtendedState(JFrame.MAXIMIZED_BOTH);
|
|
|
|
|
Image img = null;
|
|
|
|
|
try { img = ImageIO.read(AppThinker.class.getResource("img/logoAppThinker.png")); } catch (Exception ex) { }
|
|
|
|
|
this.setIconImage(img);
|
|
|
|
|
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
2020-11-21 19:46:43 +01:00
|
|
|
this.setLocationRelativeTo(null);
|
2020-11-21 15:01:19 +01:00
|
|
|
|
2020-11-21 16:28:55 +01:00
|
|
|
//Ajout du menu à la fenêtre
|
|
|
|
|
AppThinkerMenuBar menu = new AppThinkerMenuBar();
|
|
|
|
|
this.setJMenuBar(menu);
|
2020-11-21 19:46:43 +01:00
|
|
|
|
|
|
|
|
//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();
|
2020-11-21 16:28:55 +01:00
|
|
|
}
|
2020-11-21 15:01:19 +01:00
|
|
|
}
|