-
Notifications
You must be signed in to change notification settings - Fork 1
/
EngOFO.java
44 lines (31 loc) · 1.11 KB
/
EngOFO.java
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
import java.awt.Color;
import java.awt.Font;
import javax.swing.JFrame;
import javax.swing.JLabel;
public class EngOFO extends JFrame{
JFrame frame;
JLabel bankLabel;
JLabel motoLabel;
Font myFont = new Font("Serrif", Font.BOLD, 45);
EngOFO(){
// defining the frame;
frame = new JFrame("Pawan Bank PVT LTD");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(750, 750);
frame.setLayout(null);
frame.getContentPane().setBackground(new Color(0, 0,0));
// Defining the heading
bankLabel = new JLabel("Insufficient funds");
bankLabel.setFont(myFont);
bankLabel.setForeground(new Color(192,192,192));
bankLabel.setBounds(200, 100, 500, 50);
//Defining the banklabel(Moto)
motoLabel = new JLabel("Take your card.");
motoLabel.setFont(myFont);
motoLabel.setForeground(new Color(188,198,204));
motoLabel.setBounds(200,150, 650, 80);
frame.add(bankLabel);
frame.add(motoLabel);
frame.setVisible(true);
}
}