-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLanding.java
More file actions
42 lines (34 loc) · 1.11 KB
/
Copy pathLanding.java
File metadata and controls
42 lines (34 loc) · 1.11 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
import javax.swing.*;
import java.awt.*;
class Landing extends JFrame {
Landing() {
Font f = new Font("futura", Font.BOLD, 40);
Font f2 = new Font("Calibri", Font.PLAIN, 22);
JLabel l1 = new JLabel("Virtual Banking System", JLabel.CENTER);
JButton b1 = new JButton("Admin");
JButton b2 = new JButton("Existing Customer");
JButton b3 = new JButton("New Customer");
l1.setFont(f);
b1.setFont(f2);
b2.setFont(f2);
b3.setFont(f2);
Container c = getContentPane();
c.setLayout(null);
l1.setBounds(150, 50, 500, 50);
b1.setBounds(300, 150, 200, 50);
b2.setBounds(300, 230, 200, 50);
b3.setBounds(300, 310, 200, 50);
c.add(l1);
c.add(b1);
c.add(b2);
c.add(b3);
setVisible(true);
setSize(800, 550);
setLocationRelativeTo(null);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setTitle("Landing Page");
}
public static void main(String[] args) {
Landing a = new Landing();
}
}