1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package nl.tudelft.goal.visualizer.gui.panels;
18
19
20
21
22
23 public class StatusJPanel extends javax.swing.JPanel {
24
25
26
27
28 public StatusJPanel() {
29 initComponents();
30 }
31
32
33
34
35
36
37 @SuppressWarnings("unchecked")
38
39 private void initComponents() {
40
41 jProgressBar1 = new javax.swing.JProgressBar();
42 jLabel4 = new javax.swing.JLabel();
43 jPanel1 = new javax.swing.JPanel();
44 scrollbar1 = new java.awt.Scrollbar();
45 jComboBox1 = new javax.swing.JComboBox();
46 jLabel1 = new javax.swing.JLabel();
47 jLabel2 = new javax.swing.JLabel();
48 jLabel3 = new javax.swing.JLabel();
49 jSeparator1 = new javax.swing.JSeparator();
50 jLabel5 = new javax.swing.JLabel();
51 jLabel6 = new javax.swing.JLabel();
52 jProgressBar2 = new javax.swing.JProgressBar();
53 jProgressBar3 = new javax.swing.JProgressBar();
54 jLabel7 = new javax.swing.JLabel();
55 jLabel8 = new javax.swing.JLabel();
56 jLabel9 = new javax.swing.JLabel();
57 jLabel10 = new javax.swing.JLabel();
58 jLabel11 = new javax.swing.JLabel();
59 jLabel12 = new javax.swing.JLabel();
60 jLabel13 = new javax.swing.JLabel();
61 jLabel14 = new javax.swing.JLabel();
62
63 jLabel4.setText("Health:");
64
65 javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
66 jPanel1.setLayout(jPanel1Layout);
67 jPanel1Layout.setHorizontalGroup(
68 jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
69 .addGap(0, 0, Short.MAX_VALUE)
70 );
71 jPanel1Layout.setVerticalGroup(
72 jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
73 .addGap(0, 297, Short.MAX_VALUE)
74 );
75
76 jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
77
78 jLabel1.setText("Agent:");
79
80 jLabel2.setText("Status:");
81
82 jLabel3.setText("CONNECTION STATUS");
83
84 jLabel5.setText("Health:");
85
86 jLabel6.setText("Armor:");
87
88 jLabel7.setText("Weapon:");
89
90 jLabel8.setText("Action:");
91
92 jLabel9.setText("Target:");
93
94 jLabel10.setText("Focus:");
95
96 jLabel11.setText("CURRENT WEAPON");
97
98 jLabel12.setText("CURRENT ACTION");
99
100 jLabel13.setText("ACTION TARGET");
101
102 jLabel14.setText("FOCUS");
103
104 javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
105 this.setLayout(layout);
106 layout.setHorizontalGroup(
107 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
108 .addComponent(jSeparator1)
109 .addGroup(layout.createSequentialGroup()
110 .addContainerGap()
111 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
112 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
113 .addComponent(jLabel1)
114 .addGap(18, 18, 18)
115 .addComponent(jComboBox1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
116 .addGroup(layout.createSequentialGroup()
117 .addComponent(jLabel2)
118 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
119 .addComponent(jLabel3))
120 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
121 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
122 .addComponent(jLabel6)
123 .addComponent(jLabel5))
124 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
125 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
126 .addComponent(jProgressBar2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
127 .addComponent(jProgressBar3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
128 .addGroup(layout.createSequentialGroup()
129 .addComponent(jLabel10)
130 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
131 .addComponent(jLabel14))
132 .addGroup(layout.createSequentialGroup()
133 .addComponent(jLabel7)
134 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
135 .addComponent(jLabel11))
136 .addGroup(layout.createSequentialGroup()
137 .addComponent(jLabel8)
138 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
139 .addComponent(jLabel12))
140 .addGroup(layout.createSequentialGroup()
141 .addComponent(jLabel9)
142 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
143 .addComponent(jLabel13)))
144 .addContainerGap())
145 );
146 layout.setVerticalGroup(
147 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
148 .addGroup(layout.createSequentialGroup()
149 .addGap(6, 6, 6)
150 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
151 .addGroup(layout.createSequentialGroup()
152 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
153 .addComponent(jLabel2)
154 .addComponent(jLabel3))
155 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
156 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
157 .addComponent(jLabel1)
158 .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
159 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
160 .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 10, javax.swing.GroupLayout.PREFERRED_SIZE)
161 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
162 .addComponent(jLabel5))
163 .addComponent(jProgressBar2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
164 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
165 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
166 .addComponent(jLabel6)
167 .addComponent(jProgressBar3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
168 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
169 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
170 .addComponent(jLabel7)
171 .addComponent(jLabel11))
172 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
173 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
174 .addComponent(jLabel8)
175 .addComponent(jLabel12))
176 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
177 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
178 .addComponent(jLabel9)
179 .addComponent(jLabel13))
180 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
181 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
182 .addComponent(jLabel10)
183 .addComponent(jLabel14))
184 .addContainerGap(314, Short.MAX_VALUE))
185 );
186 }
187
188 private javax.swing.JComboBox jComboBox1;
189 private javax.swing.JLabel jLabel1;
190 private javax.swing.JLabel jLabel10;
191 private javax.swing.JLabel jLabel11;
192 private javax.swing.JLabel jLabel12;
193 private javax.swing.JLabel jLabel13;
194 private javax.swing.JLabel jLabel14;
195 private javax.swing.JLabel jLabel2;
196 private javax.swing.JLabel jLabel3;
197 private javax.swing.JLabel jLabel4;
198 private javax.swing.JLabel jLabel5;
199 private javax.swing.JLabel jLabel6;
200 private javax.swing.JLabel jLabel7;
201 private javax.swing.JLabel jLabel8;
202 private javax.swing.JLabel jLabel9;
203 private javax.swing.JPanel jPanel1;
204 private javax.swing.JProgressBar jProgressBar1;
205 private javax.swing.JProgressBar jProgressBar2;
206 private javax.swing.JProgressBar jProgressBar3;
207 private javax.swing.JSeparator jSeparator1;
208 private java.awt.Scrollbar scrollbar1;
209
210 }