-
Notifications
You must be signed in to change notification settings - Fork 0
/
Thanks.java
62 lines (45 loc) · 1.03 KB
/
Thanks.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import javax.swing.*;
import javafx.scene.control.TextField;
import javafx.scene.paint.Color;
import java.lang.*;
import java.awt.Font.*;
public class Thanks extends JFrame
{
JLabel lbl;
JButton str;
Font f1;
ImageIcon img;
MyActionListener1 ml = new MyActionListener1(this);
Thanks()
{
super("Thanks");
setLayout(null);
setExtendedState(getExtendedState() | JFrame.MAXIMIZED_BOTH);
img = new ImageIcon("Thanks.png");
lbl = new JLabel(img);
lbl.setBounds(0,0,img.getIconWidth(), img.getIconHeight());
lbl.setVisible(true);
str = new JButton("OK");
f1 = new Font("Segoe UI Black",Font.BOLD,30);
str.setBounds(200,700,300,100);
str.setFont(f1);
add(lbl);
add(str);
str.addActionListener(ml);
addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent we)
{
System.exit(0);
}
});
}
public static void main(String args[])
{
Thanks mf = new Thanks();
mf.setVisible(true);
}
}