Revision 407
cleaned up old files; fixed thread bug when connecting to colonet server
Colonet.java | ||
---|---|---|
687 | 687 |
public void actionPerformed (ActionEvent e) { |
688 | 688 |
Object source = e.getSource(); |
689 | 689 |
if (source == btnConnect) { |
690 |
csi.connect(txtHost.getText(), txtPort.getText()); |
|
691 |
if (!csi.isReady()) |
|
692 |
return; |
|
690 | 693 |
btnConnect.setEnabled(false); |
691 |
csi.connect(txtHost.getText(), txtPort.getText()); |
|
692 | 694 |
dataUpdater.start(); |
693 | 695 |
drawThread = new Thread(this, "drawThread"); |
694 | 696 |
drawThread.start(); |
Also available in: Unified diff