diff src/main/java/jp/ac/u_ryukyu/treevnc/CreateConnectionParam.java @ 144:1e004d9c599d

notify connection panel
author oc
date Thu, 12 Jun 2014 19:35:00 +0900
parents 4547543ca73c
children 649794dfb9d5
line wrap: on
line diff
--- a/src/main/java/jp/ac/u_ryukyu/treevnc/CreateConnectionParam.java	Thu Jun 12 19:21:38 2014 +0900
+++ b/src/main/java/jp/ac/u_ryukyu/treevnc/CreateConnectionParam.java	Thu Jun 12 19:35:00 2014 +0900
@@ -18,7 +18,7 @@
 	}
 
 	public synchronized void findTreeVncRoot() throws InterruptedException {
-		rfb.createRootSelectionPanel();
+		rfb.createRootSelectionPanel(this);
 		FindRoot getBcast = new FindRoot(rfb.acceptPort,this);
 		getBcast.findRoot();
 		// wait for RootSelection
@@ -48,9 +48,10 @@
 		accThread.start();
 	}
 
-	public void setHostName(String _hostName, int port) {
+	public synchronized void setHostName(String _hostName, int port) {
 	    hostName = _hostName;
 	    portNumber = port;
+	    notify();
 	}
 
 	public void setHostName(String hostAndPort) {