-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApage.java
More file actions
41 lines (33 loc) · 1.04 KB
/
Copy pathApage.java
File metadata and controls
41 lines (33 loc) · 1.04 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
import javax.swing.*;
import java.awt.*;
class Apage extends JFrame {
Apage() {
Font f = new Font("Futura", Font.BOLD, 40);
Font f2 = new Font("Calibri", Font.PLAIN, 22);
JLabel l1 = new JLabel("Welcome Admin", JLabel.CENTER);
JLabel l2 = new JLabel();
JButton b1 = new JButton("Logout");
JButton b2 = new JButton("Show All Users");
l1.setFont(f);
b1.setFont(f2);
b2.setFont(f2);
Container c = getContentPane();
c.setLayout(null);
l1.setBounds(110, 30, 600, 50);
b2.setBounds(250, 100, 300, 40);
b1.setBounds(250, 160, 300, 40);
l2.setBounds(250, 220, 300, 30);
c.add(l1);
c.add(b2);
c.add(b1);
c.add(l2);
setVisible(true);
setSize(800, 550);
setLocationRelativeTo(null);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setTitle("Admin Page");
}
public static void main(String[] args) {
new Apage();
}
}