Mercurial > hg > Applications > TreeVNC
comparison src/main/java/jp/ac/u_ryukyu/treevnc/CreateConnectionParam.java @ 510:89f1f7e41838
broadcast FrameBufferUpdate Rectangle
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 20 Feb 2019 15:24:42 +0900 |
parents | 94c520535ef1 |
children | b97fdcd337fe |
comparison
equal
deleted
inserted
replaced
506:3fe7e1a372df | 510:89f1f7e41838 |
---|---|
6 | 6 |
7 import com.glavsoft.viewer.ViewerInterface; | 7 import com.glavsoft.viewer.ViewerInterface; |
8 import com.glavsoft.viewer.swing.ConnectionParams; | 8 import com.glavsoft.viewer.swing.ConnectionParams; |
9 | 9 |
10 public class CreateConnectionParam { | 10 public class CreateConnectionParam { |
11 private final FindRoot getBcast; | |
11 private String hostName; | 12 private String hostName; |
12 private int portNumber = ConnectionParams.DEFAULT_VNC_ROOT; | 13 private int portNumber = ConnectionParams.DEFAULT_VNC_ROOT; |
13 private TreeRFBProto rfb; | 14 private TreeRFBProto rfb; |
14 private String myHostName; | 15 private String myHostName; |
15 private boolean rootMode = false; | 16 private boolean rootMode = false; |
17 private boolean displayMode = false; | 18 private boolean displayMode = false; |
18 | 19 |
19 public CreateConnectionParam(TreeRFBProto rfb) { | 20 public CreateConnectionParam(TreeRFBProto rfb) { |
20 this.rfb = rfb; | 21 this.rfb = rfb; |
21 rfb.setConnectionParam(this); | 22 rfb.setConnectionParam(this); |
23 getBcast = new FindRoot(rfb.acceptPort,this); | |
24 rfb.setFindRoot(getBcast); | |
22 } | 25 } |
23 | 26 |
24 public synchronized void findTreeVncRoot() { | 27 public synchronized void findTreeVncRoot() { |
25 FindRoot getBcast = new FindRoot(rfb.acceptPort,this); | |
26 rfb.createRootSelectionPanel(this, getBcast); | 28 rfb.createRootSelectionPanel(this, getBcast); |
27 getBcast.findRoot(); | 29 getBcast.findRoot(); |
28 // wait for RootSelection | 30 // wait for RootSelection |
29 try { | 31 try { |
30 wait(); | 32 wait(); |