Mercurial > hg > Applications > TreeVNC
diff src/viewer_swing/java/com/glavsoft/viewer/Viewer.java @ 121:e4408fc5679f
view onlly mode set
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 26 May 2014 19:47:09 +0900 |
parents | 01c0fd20c0b4 |
children | 775ce6a14f89 |
line wrap: on
line diff
--- a/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java Mon May 26 19:24:52 2014 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/Viewer.java Mon May 26 19:47:09 2014 +0900 @@ -285,6 +285,9 @@ myRfb.setTerminationType(b); } + /** + * starter for TreeVNC + */ public void startViewer() { MyRfbProtoClient rfb = new MyRfbProtoClient(); CreateConnectionParam cp = new CreateConnectionParam(rfb); @@ -293,6 +296,7 @@ isTreeVNC = true; rfb.setViewer(this); myRfb = rfb; + settings.setViewOnly(true); // too avoid unnecessary upward traffic SwingUtilities.invokeLater(this); } @@ -305,6 +309,7 @@ isTreeVNC = true; rfb.setViewer(this); myRfb = rfb; + settings.setViewOnly(true); // too avoid unnecessary upward traffic SwingUtilities.invokeLater(this); }