ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/conient/uk/org/iscream/cms/conient/datacomponents/ServiceDataComponent.java
(Generate patch)

Comparing projects/cms/source/conient/uk/org/iscream/cms/conient/datacomponents/ServiceDataComponent.java (file contents):
Revision 1.5 by ajm, Sun Mar 18 17:33:08 2001 UTC vs.
Revision 1.6 by ajm, Mon Mar 19 13:56:22 2001 UTC

# Line 47 | Line 47 | public class ServiceDataComponent extends VisibleDataC
47          _name = name;
48          _statusAttribute = statusAttribute;
49          _attribute = attribute;
50 <        setLayout(new GridLayout(1,1));
50 >        setLayout(new GridLayout(1,2));
51 >        _label = new JLabel(_name + ": ");
52 >        _label.setHorizontalAlignment(JLabel.RIGHT);
53          _item = new JTextField("", DEFAULT_TEXT_LENGTH);
54          _item.setHorizontalAlignment(JTextField.LEFT);
55          _item.setEditable(false);
56          _item.setText("-uninitialised-");
57 +        add(_label);
58          add(_item);
59          setVisible(false);
60      }
# Line 70 | Line 73 | public class ServiceDataComponent extends VisibleDataC
73          }
74          if (_statusCache.equals("0")) {
75              _item.setForeground(Color.black);
76 <            _item.setText(_name + "[OK] : " + _cache);
76 >            _item.setText("[OK] : " + _cache);
77          } else {
78              _item.setForeground(Color.red);
79 <            _item.setText(_name + "[FAILED] : " + _cache);
79 >            _item.setText("[FAILED] : " + _cache);
80          }
81          _item.setCaretPosition(0);
82      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines