-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMenuBar.java
More file actions
49 lines (36 loc) · 1.3 KB
/
MenuBar.java
File metadata and controls
49 lines (36 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//*****************************************************************
// MenuBar.java Author: Ravyar Sarbast
//
// The Menu bar of the App when we have few extra options
//*****************************************************************
package RavyarSarbastTahir;
import javax.swing.*;
public class MenuBar extends JMenuBar {
JMenuItem logout, factories, stores, warehouse, transit, supplier, statistics, mainmenu, aboutme;
public MenuBar() {
JMenu user = new JMenu("User");
JMenu action = new JMenu("Action");
JMenu about = new JMenu("About");
logout = new JMenuItem("Logout");
mainmenu = new JMenuItem("MainMenu");
factories = new JMenuItem("Factories");
stores = new JMenuItem("Stores");
warehouse = new JMenuItem("Warehouses");
transit = new JMenuItem("Transits");
supplier = new JMenuItem("Supplier");
statistics = new JMenuItem("Statistics");
aboutme = new JMenuItem("about me");
user.add(logout);
action.add(mainmenu);
action.add(factories);
action.add(stores);
action.add(warehouse);
action.add(transit);
action.add(supplier);
action.add(statistics);
about.add(aboutme);
add(user);
add(action);
add(about);
}
}