Transférer les fichiers vers 'src/Test'
This commit is contained in:
parent
f6e24fe05a
commit
73b9cb96d8
@ -108,7 +108,7 @@ public class MainMenu extends JFrame {
|
|||||||
* Crée le bar de menu
|
* Crée le bar de menu
|
||||||
*/
|
*/
|
||||||
private void createJMenuBar() {
|
private void createJMenuBar() {
|
||||||
JMenu menu = new JMenu("Menu"), file = new JMenu("File"), edit = new JMenu("Edit"), view = new JMenu("Affichage");
|
JMenu menu = new JMenu("Menu"), view = new JMenu("Affichage");
|
||||||
|
|
||||||
JMenuItem adminMenuItem = new JMenuItem("Vue "+viewName[0]);
|
JMenuItem adminMenuItem = new JMenuItem("Vue "+viewName[0]);
|
||||||
adminMenuItem.addActionListener((event) -> changeView(1));
|
adminMenuItem.addActionListener((event) -> changeView(1));
|
||||||
@ -137,15 +137,10 @@ public class MainMenu extends JFrame {
|
|||||||
menu.add(mainMenuItem);
|
menu.add(mainMenuItem);
|
||||||
menu.add(quitMenuItem);
|
menu.add(quitMenuItem);
|
||||||
|
|
||||||
file.add(new JMenuItem(""));
|
|
||||||
edit.add(new JMenuItem(""));
|
|
||||||
|
|
||||||
view.add(fullScreenMenuItem);
|
view.add(fullScreenMenuItem);
|
||||||
view.add(notFullScreenMenuItem);
|
view.add(notFullScreenMenuItem);
|
||||||
|
|
||||||
menuBar.add(menu);
|
menuBar.add(menu);
|
||||||
menuBar.add(file);
|
|
||||||
menuBar.add(edit);
|
|
||||||
menuBar.add(view);
|
menuBar.add(view);
|
||||||
|
|
||||||
this.setJMenuBar(menuBar);
|
this.setJMenuBar(menuBar);
|
||||||
|
Loading…
Reference in New Issue
Block a user