Create one of the fields.
161 GridBagLayout lm =
new GridBagLayout();
162 GridBagConstraints c =
new GridBagConstraints();
163 JPanel retval =
new JPanel(lm);
165 Registry conf = Registry.getCurrent();
166 retval.setBackground((Color) conf.get(
"statusbar",
"bgcolor"));
167 retval.setBorder(BorderFactory.createEtchedBorder(EtchedBorder.LOWERED));
169 JLabel field =
new JLabel(
"n/a");
170 field.setFont((Font) conf.get(
"statusbar",
"font"));
171 field.setForeground((Color) conf.get(
"statusbar",
"fgcolor"));
173 if (nm.equals(
"message")) {
175 c.anchor = GridBagConstraints.EAST;
178 c.insets =
new Insets(1, 8, 1, 8);
179 lm.setConstraints(field, c);
182 fields.put(nm, field);