Revision 172
minor changes to colonet gui
ColonetServerInterface.java | ||
---|---|---|
211 | 211 |
public void sendString (String s) { |
212 | 212 |
//make sure we can send |
213 | 213 |
if (!this.isReady()) { |
214 |
log.append("Could not send data.\n");
|
|
214 |
log.setText("Could not send data.\n");
|
|
215 | 215 |
return; |
216 | 216 |
} |
217 | 217 |
//send packet |
... | ... | |
219 | 219 |
Thread.sleep(10); //pause to be safe |
220 | 220 |
out.write(s); |
221 | 221 |
out.flush(); |
222 |
log.append("Sent: " + s);
|
|
222 |
log.setText("Sent: " + s);
|
|
223 | 223 |
} catch (IOException e) { |
224 |
log.append("Could not send data.\n");
|
|
224 |
log.setText("Could not send data.\n");
|
|
225 | 225 |
} catch (InterruptedException e) { |
226 |
log.append("Thread InterruptedException in sendData\n");
|
|
226 |
log.setText("Thread InterruptedException in sendData\n");
|
|
227 | 227 |
} |
228 | 228 |
} |
229 | 229 |
|
Also available in: Unified diff