-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmini.java
More file actions
39 lines (33 loc) · 1009 Bytes
/
Copy pathmini.java
File metadata and controls
39 lines (33 loc) · 1009 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
38
39
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class mini extends JFrame implements ActionListener {
String pin;
JButton button;
mini(String pin){
this.pin = pin;
getContentPane().setBackground(new Color(255,204,204));
setSize(400,600);
setLocation(20,20);
setLayout(null);
JLabel label1 = new JLabel("MINI Statement");
label1.setFont(new Font("System", Font.BOLD,15));
label1.setBounds(150,20,200,20);
add(label1);
button = new JButton("Exit");
button.setBounds(20,500,100,25);
button.addActionListener(this);
button.setBackground(Color.BLACK);
button.setForeground(Color.WHITE);
add(button);
setVisible(true);
}
@Override
public void actionPerformed(ActionEvent e) {
setVisible(false);
}
public static void main(String[] args) {
new mini("");
}
}