-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathHomePage.java
More file actions
37 lines (28 loc) · 779 Bytes
/
HomePage.java
File metadata and controls
37 lines (28 loc) · 779 Bytes
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
import java.awt.*;
import javax.swing.*;
public class HomePage {
static Menu m1,m2,m3,m4;
static JFrame f;
public static void main(String args[])
{
f= new JFrame("Boutique Management");
MenuBar mb=new MenuBar();
m1=new Menu("Designs");
m2=new Menu("Taylors");
m3=new Menu("Employees");
m4=new Menu("Customers");
mb.add(m1);
mb.add(m2);
mb.add(m3);
mb.add(m4);
f.setMenuBar(mb);
ImageIcon icon = new ImageIcon("C:\\Users\\ASHISH MATHUR\\Pictures\\Boutique\\K2.jpg");
JLabel label = new JLabel(icon);
f.add(label);
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.pack();
f.setSize(1200,600);
f.setLayout(null);
f.setVisible(true);
}
}