public StatusBar() {
super(new GridBagLayout());
GridBagConstraints gbc = new GridBagConstraints();
gbc.anchor = GridBagConstraints.WEST;
gbc.fill = GridBagConstraints.BOTH;
gbc.weightx = 0.0;
connected = new StatusLabel(RED_LED_OFF);
connected.setHorizontalAlignment(JLabel.CENTER);
UIUtil.jGridBagAdd(this, connected, gbc, 1);
JPanel lights = new JPanel(new GridLayout(1, 2));
sending = new JLabel(GREEN_LED_OFF);
sending.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 2));
sending.setHorizontalAlignment(JLabel.CENTER);
receiving = new JLabel(GREEN_LED_OFF);
receiving.setHorizontalAlignment(JLabel.CENTER);
lights.add(sending);
lights.add(receiving);
gbc.weightx = 0.0;
lights.setBorder(BorderFactory.createCompoundBorder(
BorderFactory.createLoweredBevelBorder(),
BorderFactory.createEmptyBorder(1, 1, 1, 1)));
gbc.weightx = 1.5;
host = new StatusLabel();
UIUtil.jGridBagAdd(this, host, gbc, 1);
user = new StatusLabel();
UIUtil.jGridBagAdd(this, user, gbc, 1);
rid = new StatusLabel();
UIUtil.jGridBagAdd(this, rid, gbc, 1);
statusText = new StatusLabel();
gbc.weightx = 4.0;
UIUtil.jGridBagAdd(this, statusText, gbc, GridBagConstraints.RELATIVE);
gbc.weightx = 0.0;
UIUtil.jGridBagAdd(this, lights, gbc, GridBagConstraints.REMAINDER);
}