-
Notifications
You must be signed in to change notification settings - Fork 1
/
User_Covid.java
70 lines (60 loc) · 1.69 KB
/
User_Covid.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
63
64
65
66
67
68
69
70
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JTextField;
public class User_Covid {
private JFrame frame;
/**
* @wbp.nonvisual location=73,4
*/
private final JLabel lblCovidUser = new JLabel("Covid User");
private JTextField textField;
private JTextField textField_1;
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
User_Covid window = new User_Covid();
window.frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the application.
*/
public User_Covid() {
initialize();
}
/**
* Initialize the contents of the frame.
*/
private void initialize() {
frame = new JFrame();
frame.setBounds(100, 100, 966, 672);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setLayout(null);
JLabel txtname = new JLabel("Enter name: ");
txtname.setFont(new Font("Tahoma", Font.PLAIN, 18));
txtname.setBounds(41, 36, 193, 40);
frame.getContentPane().add(txtname);
textField = new JTextField();
textField.setBounds(41, 85, 243, 48);
frame.getContentPane().add(textField);
textField.setColumns(10);
JLabel txtplace = new JLabel("Enter place: ");
txtplace.setFont(new Font("Tahoma", Font.PLAIN, 18));
txtplace.setBounds(41, 169, 193, 40);
frame.getContentPane().add(txtplace);
textField_1 = new JTextField();
textField_1.setColumns(10);
textField_1.setBounds(41, 219, 243, 48);
frame.getContentPane().add(textField_1);
}
}