diff options
author | Dor Bivas <dor1_b@walla.com> | 2014-01-18 18:12:21 +0200 |
---|---|---|
committer | Dor Bivas <dor1_b@walla.com> | 2014-01-18 18:12:21 +0200 |
commit | 4ba8e7836f0f25a05f53a9a3754baaa5b7084059 (patch) | |
tree | 9a43425be0a5cf389b761b2c8f66d36dddb369cf | |
parent | 5c25d99f60b443405c5e1fd6f74ae8812bb1eaa4 (diff) |
client: Do use host and port from interface
-rw-r--r-- | src/Client/UserInterface.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Client/UserInterface.java b/src/Client/UserInterface.java index 9f7fd5c..872db72 100644 --- a/src/Client/UserInterface.java +++ b/src/Client/UserInterface.java @@ -134,7 +134,7 @@ public class UserInterface extends JFrame implements ActionListener, KeyListener if (command == "connect" && counterClick == 0 ) { - if (client.connect("localhost",(Integer.parseInt("6667")))) + if (client.connect(host.getText(),Integer.parseInt(port.getText()))) { output.append("You've connect to the server succesufully" + "\n"); counterClick++; |