Mercurial > hg > Members > riono > TreeVNC_ja_comment
changeset 491:13b08ea73237
fix cursor
author | oshiro |
---|---|
date | Thu, 31 Jan 2019 19:09:26 +0900 |
parents | 141f627665ab |
children | 57e0d052b126 |
files | src/viewer_swing/java/com/glavsoft/viewer/TreeViewer.java |
diffstat | 1 files changed, 14 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/viewer_swing/java/com/glavsoft/viewer/TreeViewer.java Wed Jan 30 20:49:39 2019 +0900 +++ b/src/viewer_swing/java/com/glavsoft/viewer/TreeViewer.java Thu Jan 31 19:09:26 2019 +0900 @@ -52,7 +52,16 @@ return; } if (viewer) { - ViewerInterface v = cui ? new CuiViewer() : new Viewer(); + Viewer gui ; + ViewerInterface v ; + if (!cui) { + gui = new Viewer(); + setviewonly(gui); + v = gui; + } else { + v = new CuiViewer(); + } + setWidthAndHeight(v); // if(filterSingleDisplay) if(fixingSizeDisplay) @@ -88,6 +97,10 @@ } } + private void setviewonly(Viewer v) { + v.settings.setViewOnly(true); + } + public void rootStart(String[] args, ViewerInterface v) throws SocketException, UnknownHostException { v.setNoConnection(noConnection); // should we accept host name here? v.proxyStart(args, hostName, width, height, showTree, checkDelay, addSerialNum, fixingSizeDisplay, filterSingleDisplay, viewer);