Mercurial > hg > Applications > TreeVNC
changeset 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 | c1b14cef2704 |
children | e2416a246c95 |
files | src/viewer_swing/java/com/glavsoft/viewer/Viewer.java |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
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); }