Mercurial > hg > Members > nobuyasu > tightVNCClient
changeset 33:241f95cf0c0c
modify MyVncClient.java
author | e085711 |
---|---|
date | Thu, 07 Jul 2011 16:04:40 +0900 |
parents | 6ddc79804a08 |
children | 76f5994f2af2 |
files | src/myVncClient/MyVncClient.java |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/myVncClient/MyVncClient.java Thu Jul 07 14:24:55 2011 +0900 +++ b/src/myVncClient/MyVncClient.java Thu Jul 07 16:04:40 2011 +0900 @@ -28,7 +28,7 @@ v.inSeparateFrame = true; v.init(null); - + v.start_threads(); v.start(); } @@ -70,7 +70,6 @@ vncFrame.addWindowListener(this); rfbThread = new Thread(this); - rfbThread.start(); } public void update(Graphics g) { @@ -80,6 +79,10 @@ // run() - executed by the rfbThread to deal with the RFB socket. // + public void start_threads(){ + rfbThread.start(); + } + public void run() { gridbag = new GridBagLayout(); @@ -94,7 +97,6 @@ gridbag.setConstraints(buttonPanel, gbc); vncContainer.add(buttonPanel); } - try { @@ -113,7 +115,8 @@ System.out.println("Socket error"); System.exit(0); } catch (Exception e) { - + System.out.println(e); + System.exit(0); } gbc.weightx = 1.0;