Repository navigation
Expand file tree
/
Copy pathClientGUI1Swing3.java
More file actions
168 lines (136 loc) · 5.08 KB
/
Copy pathClientGUI1Swing3.java
File metadata and controls
168 lines (136 loc) · 5.08 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
import java.awt.Color;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JButton;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.JSpinner;
import javax.swing.JList;
import javax.swing.border.BevelBorder;
import javax.swing.border.LineBorder;
public class ClientGUI1Swing3 {
private JFrame frame;
private JTextField textField;
private JTextField textField_1;
/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
ClientGUI1Swing3 window = new ClientGUI1Swing3();
window.frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
/**
* Create the application.
*/
public ClientGUI1Swing3() {
initialize();
}
/**
* Initialize the contents of the frame.
*/
private void initialize() {
frame = new JFrame();
frame.setBounds(100, 100, 815, 670);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().setLayout(null);
JPanel chatroom_panel = new JPanel();
chatroom_panel.setBorder(new LineBorder(new Color(0, 0, 0)));
chatroom_panel.setBounds(34, 35, 447, 376);
frame.getContentPane().add(chatroom_panel);
chatroom_panel.setLayout(null);
JLabel lblNewLabel = new JLabel("Chat Room");
lblNewLabel.setForeground(new Color(0, 0, 0));
lblNewLabel.setBounds(10, 10, 427, 15);
chatroom_panel.add(lblNewLabel);
JLabel lblNewLabel_1 = new JLabel("Current User");
lblNewLabel_1.setBounds(10, 44, 77, 15);
chatroom_panel.add(lblNewLabel_1);
JButton privatesendButton = new JButton("Send PM");
privatesendButton.setBounds(10, 292, 97, 23);
chatroom_panel.add(privatesendButton);
JButton sendButton = new JButton("Send");
sendButton.setBounds(10, 327, 97, 23);
chatroom_panel.add(sendButton);
JTextArea textArea = new JTextArea();
textArea.setBounds(117, 35, 320, 235);
chatroom_panel.add(textArea);
JTextArea chatdisplayarea = new JTextArea();
chatdisplayarea.setBounds(117, 291, 320, 59);
chatroom_panel.add(chatdisplayarea);
JList list = new JList();
list.setBounds(10, 74, 97, 194);
chatroom_panel.add(list);
JPanel warehouse_panel = new JPanel();
warehouse_panel.setBorder(new LineBorder(new Color(0, 0, 0)));
warehouse_panel.setBounds(491, 35, 300, 376);
frame.getContentPane().add(warehouse_panel);
warehouse_panel.setLayout(null);
JLabel lblNewLabel_2 = new JLabel("Warehouse");
lblNewLabel_2.setBounds(10, 10, 280, 15);
warehouse_panel.add(lblNewLabel_2);
JPanel Currentquantity_panel = new JPanel();
Currentquantity_panel.setBorder(new LineBorder(new Color(0, 0, 0)));
Currentquantity_panel.setBounds(20, 35, 256, 125);
Currentquantity_panel.setBackground(Color.white);
warehouse_panel.add(Currentquantity_panel);
Currentquantity_panel.setLayout(null);
JLabel lblNewLabel_4 = new JLabel("Current Quantitiy");
lblNewLabel_4.setBounds(10, 10, 163, 15);
Currentquantity_panel.add(lblNewLabel_4);
JLabel lblNewLabel_5 = new JLabel("Product");
lblNewLabel_5.setBounds(30, 80, 66, 21);
Currentquantity_panel.add(lblNewLabel_5);
JLabel lblNewLabel_6 = new JLabel("Material");
lblNewLabel_6.setBounds(30, 40, 66, 21);
Currentquantity_panel.add(lblNewLabel_6);
textField = new JTextField();
textField.setBounds(107, 40, 66, 21);
Currentquantity_panel.add(textField);
textField.setColumns(10);
textField_1 = new JTextField();
textField_1.setBounds(107, 80, 66, 21);
Currentquantity_panel.add(textField_1);
textField_1.setColumns(10);
JPanel update_panel = new JPanel();
update_panel.setBorder(new LineBorder(new Color(0, 0, 0)));
update_panel.setBounds(20, 190, 256, 125);
warehouse_panel.add(update_panel);
update_panel.setLayout(null);
JLabel lblNewLabel_7 = new JLabel("Material");
lblNewLabel_7.setBounds(30, 20, 58, 15);
update_panel.add(lblNewLabel_7);
JLabel lblNewLabel_8 = new JLabel("Product");
lblNewLabel_8.setBounds(30, 49, 58, 15);
update_panel.add(lblNewLabel_8);
JSpinner spinner_1 = new JSpinner();
spinner_1.setBounds(108, 17, 64, 22);
update_panel.add(spinner_1);
JSpinner spinner_2 = new JSpinner();
spinner_2.setBounds(108, 46, 64, 22);
update_panel.add(spinner_2);
JButton privatesendButton_2 = new JButton("Confirm");
privatesendButton_2.setBounds(75, 92, 97, 23);
update_panel.add(privatesendButton_2);
JPanel history_panel = new JPanel();
history_panel.setBorder(new LineBorder(new Color(0, 0, 0)));
history_panel.setBounds(34, 433, 757, 190);
frame.getContentPane().add(history_panel);
history_panel.setLayout(null);
JLabel lblNewLabel_3 = new JLabel("History");
lblNewLabel_3.setBounds(10, 10, 737, 15);
history_panel.add(lblNewLabel_3);
JTextArea textArea_2 = new JTextArea();
textArea_2.setBounds(10, 35, 737, 145);
history_panel.add(textArea_2);
}
}