# | Line 53 | Line 53 | public class ServiceDataComponent extends VisibleDataC | |
---|---|---|
53 | _item.setEditable(false); | |
54 | _item.setText("-uninitialised-"); | |
55 | add(_item); | |
56 | + | setVisible(false); |
57 | } | |
58 | ||
59 | //---PUBLIC METHODS--- | |
# | Line 64 | Line 65 | public class ServiceDataComponent extends VisibleDataC | |
65 | * run this method. | |
66 | */ | |
67 | public void run() { | |
68 | + | if(!isVisible()) { |
69 | + | setVisible(true); |
70 | + | } |
71 | if (_statusCache.equals("0")) { | |
72 | _item.setBackground(Color.green); | |
73 | _item.setText(_name + "[OK] : " + _cache); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |