# | Line 136 | Line 136 | public class SwingClient extends JFrame implements Run | |
---|---|---|
136 | //---PUBLIC METHODS--- | |
137 | ||
138 | public void run() { | |
139 | + | try { |
140 | _data.start(); | |
141 | while(true) { | |
142 | + | synchronized (_data) { |
143 | + | _data.wait(); |
144 | + | } |
145 | String xml = _data.getXML(); | |
146 | if (xml == null) { | |
147 | // nothing | |
# | Line 188 | Line 192 | public class SwingClient extends JFrame implements Run | |
192 | _memory_swapinuse.setText(packet.getParam("packet.memory.swapinuse")); | |
193 | _memory_swapfree.setText(packet.getParam("packet.memory.swapfree")); | |
194 | } | |
195 | + | } |
196 | + | } catch (Exception e) { |
197 | + | System.err.println("ERROR: " + e); |
198 | } | |
199 | } | |
200 |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |