Repository navigation
Expand file tree
/
Copy pathClientGUI1Swing1.java
More file actions
89 lines (71 loc) · 2.18 KB
/
Copy pathClientGUI1Swing1.java
File metadata and controls
89 lines (71 loc) · 2.18 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
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JButton;
import javax.swing.JTextPane;
import javax.swing.JTextField;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.rmi.RemoteException;
public class ClientGUI1Swing1 implements ActionListener {
private JFrame frame;
private JTextField textField;
private JTextField textField_1;
private String name,password;
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
ClientGUI1Swing1 window = new ClientGUI1Swing1();
window.frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the application.
*/
public ClientGUI1Swing1() {
initialize();
}
/**
* Initialize the contents of the frame.
*/
public void initialize() {
frame = new JFrame();
frame.setBounds(100, 100, 450, 300);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setLayout(null);
JLabel lblNewLabel = new JLabel("Brew Day");
lblNewLabel.setBounds(180, 10, 58, 15);
frame.getContentPane().add(lblNewLabel);
textField = new JTextField();
textField.setBounds(138, 64, 140, 20);
frame.getContentPane().add(textField);
textField.setColumns(10);
textField_1 = new JTextField();
textField_1.setBounds(139, 113, 140, 20);
frame.getContentPane().add(textField_1);
textField_1.setColumns(10);
JLabel lblNewLabel_1 = new JLabel("User name:");
lblNewLabel_1.setBounds(65, 68, 71, 15);
frame.getContentPane().add(lblNewLabel_1);
JLabel lblNewLabel_2 = new JLabel("Password:");
lblNewLabel_2.setBounds(65, 118, 71, 15);
frame.getContentPane().add(lblNewLabel_2);
JButton btnNewButton = new JButton("Log in");
btnNewButton.setBounds(158, 184, 97, 23);
frame.getContentPane().add(btnNewButton);
btnNewButton.addActionListener(this);
}
@Override
public void actionPerformed(ActionEvent e) {
}
}