Revision 327
Battery meter is smaller
trunk/code/projects/colonet/ColonetGUI/Colonet.java | ||
---|---|---|
209 | 209 |
panelRobotCommands = new JPanel(); |
210 | 210 |
panelRobotCommands.setLayout(new GridLayout(5,2)); |
211 | 211 |
cmbRobotNum = new JComboBox(); |
212 |
lblBattery = new JLabel(new BatteryIcon(75, 100, 100)); |
|
212 |
lblBattery = new JLabel(new BatteryIcon(75, 70, 70)); |
|
213 |
lblBattery.setPreferredSize(new Dimension(100,100)); |
|
213 | 214 |
btnCommand_StopTask = new JButton("Stop Current Task"); |
214 | 215 |
btnCommand_ResumeTask = new JButton("Resume Current Task"); |
215 | 216 |
btnCommand_ChargeNow = new JButton("Recharge Now"); |
... | ... | |
226 | 227 |
panelRobotControl.setLayout(new GridLayout(2,1)); |
227 | 228 |
panelRobotControl.add(panelRobotDirection); |
228 | 229 |
panelRobotControl.add(panelRobotCommands); |
230 |
lblBattery.setIcon(new BatteryIcon(75, lblBattery.getMaximumSize().height, |
|
231 |
lblBattery.getMaximumSize().height)); |
|
229 | 232 |
|
230 | 233 |
// Task Manager |
231 | 234 |
panelTaskManager = new JPanel(); |
Also available in: Unified diff