Mercurial > hg > Applications > TreeVNC
comparison src/viewer_swing/java/com/glavsoft/viewer/Viewer.java @ 220:619abe65e4ff
minor fix
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 04 Jul 2014 23:50:57 +0900 |
parents | b31903e5b02d |
children | ccbc3a951961 |
comparison
equal
deleted
inserted
replaced
219:1edc11b2e8e6 | 220:619abe65e4ff |
---|---|
361 } | 361 } |
362 | 362 |
363 public void proxyStart(String[] argv, int width, int height, boolean showTree) { | 363 public void proxyStart(String[] argv, int width, int height, boolean showTree) { |
364 fbWidth = width; | 364 fbWidth = width; |
365 this.showTree = showTree; | 365 this.showTree = showTree; |
366 proxyStart(argv, showTree); | |
367 } | |
368 | |
369 public void proxyStart(String[] argv, boolean showTree) { | |
370 // input into arguments Decision | 366 // input into arguments Decision |
371 Parser parser = new Parser(); | 367 Parser parser = new Parser(); |
372 ParametersHandler.completeParserOptions(parser); | 368 ParametersHandler.completeParserOptions(parser); |
373 if (fbWidth == 0) | 369 if (fbWidth == 0) |
374 parser.parse(argv); | 370 parser.parse(argv); |
380 TreeRFBProto rfb = new TreeRFBProto(true); | 376 TreeRFBProto rfb = new TreeRFBProto(true); |
381 myRfb = rfb; | 377 myRfb = rfb; |
382 rfb.setShowTree(showTree); | 378 rfb.setShowTree(showTree); |
383 rfb.setViewer(this); | 379 rfb.setViewer(this); |
384 rfb.setCuiVersion(false); | 380 rfb.setCuiVersion(false); |
385 rfb.setHasViewer(true); | 381 rfb.setHasViewer(true); // this flag will be overwrited after this method. Do we have to set here? |
386 rfb.createConnectionAndStart(this); | 382 rfb.createConnectionAndStart(this); |
387 setIsTreeVNC(true); | 383 setIsTreeVNC(true); |
388 connectionParams.setConnectionParam(hostname, vncport); | 384 connectionParams.setConnectionParam(hostname, vncport); |
389 isApplet = true; | 385 isApplet = true; |
390 settings.setViewOnly(true); // too avoid unnecessary upward traffic | 386 settings.setViewOnly(true); // too avoid unnecessary upward traffic |