comparison src/myVncClient/VncViewer.java @ 22:ddecfefc7cbe

add build.xml
author e085711
date Wed, 18 May 2011 11:18:44 +0900
parents 965360af5f0b
children 072306e78a95
comparison
equal deleted inserted replaced
21:2338a9bcc1d6 22:ddecfefc7cbe
662 // 662 //
663 663
664 void readParameters() { 664 void readParameters() {
665 host = readParameter("HOST", !inAnApplet); 665 host = readParameter("HOST", !inAnApplet);
666 666
667
667 if (host == null) { host = getCodeBase().getHost(); if 668 if (host == null) { host = getCodeBase().getHost(); if
668 (host.equals("")) { fatalError("HOST parameter not specified"); } } 669 (host.equals("")) { fatalError("HOST parameter not specified"); } }
669 670
670 port = readIntParameter("PORT", 5550); 671 port = readIntParameter("PORT", 5550);
672
671 673
672 // Read "ENCPASSWORD" or "PASSWORD" parameter if specified. 674 // Read "ENCPASSWORD" or "PASSWORD" parameter if specified.
673 readPasswordParameters(); 675 readPasswordParameters();
674 676
675 String str; 677 String str;
678
676 if (inAnApplet) { 679 if (inAnApplet) {
677 str = readParameter("Open New Window", false); 680 str = readParameter("Open New Window", false);
678 if (str != null && str.equalsIgnoreCase("Yes")) 681 if (str != null && str.equalsIgnoreCase("Yes"))
679 inSeparateFrame = true; 682 inSeparateFrame = true;
680 } 683 }
681 684
685
682 // "Show Controls" set to "No" disables button panel. 686 // "Show Controls" set to "No" disables button panel.
683 showControls = true; 687 showControls = true;
684 str = readParameter("Show Controls", false); 688 str = readParameter("Show Controls", false);
685 if (str != null && str.equalsIgnoreCase("No")) 689 if (str != null && str.equalsIgnoreCase("No"))
686 showControls = false; 690 showControls = false;