49 |
|
_attribute = attribute; |
50 |
|
setLayout(new GridLayout(1,1)); |
51 |
|
_item = new JTextField("", DEFAULT_TEXT_LENGTH); |
52 |
< |
_item.setHorizontalAlignment(JTextField.CENTER); |
52 |
> |
_item.setHorizontalAlignment(JTextField.LEFT); |
53 |
|
_item.setEditable(false); |
54 |
|
_item.setText("-uninitialised-"); |
55 |
|
add(_item); |
69 |
|
setVisible(true); |
70 |
|
} |
71 |
|
if (_statusCache.equals("0")) { |
72 |
< |
_item.setBackground(Color.green); |
72 |
> |
_item.setForeground(Color.black); |
73 |
|
_item.setText(_name + "[OK] : " + _cache); |
74 |
|
} else { |
75 |
< |
_item.setBackground(Color.red); |
75 |
> |
_item.setForeground(Color.red); |
76 |
|
_item.setText(_name + "[FAILED] : " + _cache); |
77 |
|
} |
78 |
+ |
_item.setCaretPosition(0); |
79 |
|
} |
80 |
|
|
81 |
|
/** |