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 UT2004AgentPanel extends javax.swing.JPanel {
24
25
26
27
28 public UT2004AgentPanel() {
29 initComponents();
30 }
31
32
33
34
35
36
37 @SuppressWarnings("unchecked")
38
39 private void initComponents() {
40
41 jLabel1 = new javax.swing.JLabel();
42 jLabel2 = new javax.swing.JLabel();
43 jProgressBar2 = new javax.swing.JProgressBar();
44 jProgressBar3 = new javax.swing.JProgressBar();
45
46 jLabel1.setText("Health:");
47
48 jLabel2.setText("Armor:");
49
50 jProgressBar3.setValue(50);
51 jProgressBar3.setString("50%");
52
53 javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
54 this.setLayout(layout);
55 layout.setHorizontalGroup(
56 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
57 .addGroup(layout.createSequentialGroup()
58 .addComponent(jLabel1)
59 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 81, Short.MAX_VALUE)
60 .addComponent(jProgressBar3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
61 .addGroup(layout.createSequentialGroup()
62 .addComponent(jLabel2)
63 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
64 .addComponent(jProgressBar2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
65 );
66 layout.setVerticalGroup(
67 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
68 .addGroup(layout.createSequentialGroup()
69 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
70 .addComponent(jLabel1)
71 .addComponent(jProgressBar3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
72 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
73 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
74 .addComponent(jLabel2)
75 .addComponent(jProgressBar2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
76 .addGap(0, 266, Short.MAX_VALUE))
77 );
78 }
79
80 private javax.swing.JLabel jLabel1;
81 private javax.swing.JLabel jLabel2;
82 private javax.swing.JProgressBar jProgressBar2;
83 private javax.swing.JProgressBar jProgressBar3;
84
85 }