Create one of the fields.
299 GridBagLayout lm =
new GridBagLayout();
300 GridBagConstraints c =
new GridBagConstraints();
301 JPanel retval =
new JPanel(lm);
303 Registry conf = Registry.getCurrent();
304 retval.setBackground((Color) conf.get(
"statusbar",
"bgcolor"));
305 retval.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED));
307 JLabel field =
new JLabel(text);
308 field.setFont((Font) conf.get(
"statusbar",
"font"));
309 field.setForeground((Color) conf.get(
"statusbar",
"fgcolor"));
311 if (tag.equals(
"status")) {
312 field.setIcon(conf.loadIcon(
"stat_ok.png"));
313 field.setIconTextGap(6);
315 c.anchor = GridBagConstraints.EAST;
318 c.insets =
new Insets(1, 8, 1, 8);
319 lm.setConstraints(field, c);
322 fields.put(tag, field);