Mercurial > hg > Members > nobuyasu > tightVNCClient
comparison src/myVncClient/VncViewer.java @ 60:18a19d8a09f4
add some files. for to use Client with CUI.
author | e085711 |
---|---|
date | Fri, 05 Aug 2011 01:05:38 +0900 |
parents | c9ef47d9aa55 |
children | 83acdeca0539 |
comparison
equal
deleted
inserted
replaced
59:d086ec1b4a7a | 60:18a19d8a09f4 |
---|---|
3 import java.awt.*; | 3 import java.awt.*; |
4 import java.awt.event.*; | 4 import java.awt.event.*; |
5 import java.io.*; | 5 import java.io.*; |
6 import java.net.*; | 6 import java.net.*; |
7 | 7 |
8 public class VncViewer extends java.applet.Applet implements | 8 public class VncViewer extends java.applet.Applet implements |
9 java.lang.Runnable, WindowListener { | 9 java.lang.Runnable, WindowListener { |
10 | 10 |
11 boolean inAnApplet = true; | 11 boolean inAnApplet = true; |
12 boolean inSeparateFrame = false; | 12 boolean inSeparateFrame = false; |
13 protected String[] mainArgs; | 13 protected String[] mainArgs; |
145 } | 145 } |
146 try { | 146 try { |
147 | 147 |
148 rfb = new MyRfbProto(host, port, this); | 148 rfb = new MyRfbProto(host, port, this); |
149 rfb.readServerInit(); | 149 rfb.readServerInit(); |
150 rfb.readPngData(); | 150 // rfb.readPngData(); |
151 | 151 |
152 createCanvas(0, 0); | 152 createCanvas(0, 0); |
153 vc.drawFirstImage(); | 153 vc.drawFirstImage(); |
154 } catch (IOException e) { | 154 } catch (IOException e) { |
155 System.out.println("Socket error"); | 155 System.out.println("Socket error"); |
674 host = readParameter("HOST", !inAnApplet); | 674 host = readParameter("HOST", !inAnApplet); |
675 | 675 |
676 | 676 |
677 if (host == null) { host = getCodeBase().getHost(); | 677 if (host == null) { host = getCodeBase().getHost(); |
678 if (host.equals("")) { | 678 if (host.equals("")) { |
679 host = "nw0811.st.ie.u-ryukyu.ac.jp"; | 679 fatalError("HOST parameter not specified"); |
680 // fatalError("HOST parameter not specified"); | |
681 } | 680 } |
682 } | 681 } |
683 | 682 |
684 port = readIntParameter("PORT", 5550); | 683 port = readIntParameter("PORT", 5550); |
685 | 684 |