annotate src/myVncProxy/OptionsFrame.java @ 181:f0dc6e6e85dc

modify MyRfbProto.java : method authneticationRequestAccess()
author e085711
date Tue, 25 Oct 2011 02:58:32 +0900
parents 87b29d6039a6
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
24
87b29d6039a6 add package myVncProxy
e085711
parents: 0
diff changeset
1 package myVncProxy;
0
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
2 //
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
3 // Copyright (C) 2001 HorizonLive.com, Inc. All Rights Reserved.
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
4 // Copyright (C) 2001 Constantin Kaplinsky. All Rights Reserved.
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
5 // Copyright (C) 2000 Tridia Corporation. All Rights Reserved.
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
6 // Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved.
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
7 //
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
8 // This is free software; you can redistribute it and/or modify
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
9 // it under the terms of the GNU General Public License as published by
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
10 // the Free Software Foundation; either version 2 of the License, or
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
11 // (at your option) any later version.
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
12 //
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
13 // This software is distributed in the hope that it will be useful,
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
14 // but WITHOUT ANY WARRANTY; without even the implied warranty of
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
16 // GNU General Public License for more details.
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
17 //
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
18 // You should have received a copy of the GNU General Public License
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
19 // along with this software; if not, write to the Free Software
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
20 // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
21 // USA.
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
22 //
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
23
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
24 //
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
25 // Options frame.
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
26 //
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
27 // This deals with all the options the user can play with.
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
28 // It sets the encodings array and some booleans.
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
29 //
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
30
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
31 import java.awt.*;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
32 import java.awt.event.*;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
33
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
34 class OptionsFrame extends Frame
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
35 implements WindowListener, ActionListener, ItemListener {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
36
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
37 static String[] names = {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
38 "Encoding",
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
39 "Compression level",
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
40 "JPEG image quality",
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
41 "Cursor shape updates",
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
42 "Use CopyRect",
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
43 "Restricted colors",
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
44 "Mouse buttons 2 and 3",
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
45 "View only",
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
46 "Scale remote cursor",
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
47 "Share desktop",
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
48 };
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
49
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
50 static String[][] values = {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
51 { "Auto", "Raw", "RRE", "CoRRE", "Hextile", "Zlib", "Tight", "ZRLE" },
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
52 { "Default", "1", "2", "3", "4", "5", "6", "7", "8", "9" },
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
53 { "JPEG off", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" },
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
54 { "Enable", "Ignore", "Disable" },
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
55 { "Yes", "No" },
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
56 { "Yes", "No" },
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
57 { "Normal", "Reversed" },
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
58 { "Yes", "No" },
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
59 { "No", "50%", "75%", "125%", "150%" },
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
60 { "Yes", "No" },
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
61 };
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
62
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
63 final int
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
64 encodingIndex = 0,
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
65 compressLevelIndex = 1,
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
66 jpegQualityIndex = 2,
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
67 cursorUpdatesIndex = 3,
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
68 useCopyRectIndex = 4,
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
69 eightBitColorsIndex = 5,
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
70 mouseButtonIndex = 6,
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
71 viewOnlyIndex = 7,
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
72 scaleCursorIndex = 8,
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
73 shareDesktopIndex = 9;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
74
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
75 Label[] labels = new Label[names.length];
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
76 Choice[] choices = new Choice[names.length];
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
77 Button closeButton;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
78 VncViewer viewer;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
79
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
80
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
81 //
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
82 // The actual data which other classes look at:
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
83 //
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
84
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
85 int preferredEncoding;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
86 int compressLevel;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
87 int jpegQuality;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
88 boolean useCopyRect;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
89 boolean requestCursorUpdates;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
90 boolean ignoreCursorUpdates;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
91
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
92 boolean eightBitColors;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
93
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
94 boolean reverseMouseButtons2And3;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
95 boolean shareDesktop;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
96 boolean viewOnly;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
97 int scaleCursor;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
98
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
99 boolean autoScale;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
100 int scalingFactor;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
101
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
102 //
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
103 // Constructor. Set up the labels and choices from the names and values
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
104 // arrays.
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
105 //
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
106
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
107 OptionsFrame(VncViewer v) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
108 super("TightVNC Options");
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
109
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
110 viewer = v;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
111
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
112 GridBagLayout gridbag = new GridBagLayout();
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
113 setLayout(gridbag);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
114
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
115 GridBagConstraints gbc = new GridBagConstraints();
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
116 gbc.fill = GridBagConstraints.BOTH;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
117
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
118 for (int i = 0; i < names.length; i++) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
119 labels[i] = new Label(names[i]);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
120 gbc.gridwidth = 1;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
121 gridbag.setConstraints(labels[i],gbc);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
122 add(labels[i]);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
123
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
124 choices[i] = new Choice();
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
125 gbc.gridwidth = GridBagConstraints.REMAINDER;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
126 gridbag.setConstraints(choices[i],gbc);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
127 add(choices[i]);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
128 choices[i].addItemListener(this);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
129
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
130 for (int j = 0; j < values[i].length; j++) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
131 choices[i].addItem(values[i][j]);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
132 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
133 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
134
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
135 closeButton = new Button("Close");
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
136 gbc.gridwidth = GridBagConstraints.REMAINDER;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
137 gridbag.setConstraints(closeButton, gbc);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
138 add(closeButton);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
139 closeButton.addActionListener(this);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
140
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
141 pack();
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
142
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
143 addWindowListener(this);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
144
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
145 // Set up defaults
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
146
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
147 choices[encodingIndex].select("Auto");
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
148 choices[compressLevelIndex].select("Default");
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
149 choices[jpegQualityIndex].select("6");
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
150 choices[cursorUpdatesIndex].select("Enable");
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
151 choices[useCopyRectIndex].select("Yes");
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
152 choices[eightBitColorsIndex].select("No");
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
153 choices[mouseButtonIndex].select("Normal");
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
154 choices[viewOnlyIndex].select("No");
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
155 choices[scaleCursorIndex].select("No");
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
156 choices[shareDesktopIndex].select("Yes");
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
157
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
158 // But let them be overridden by parameters
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
159
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
160 for (int i = 0; i < names.length; i++) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
161 String s = viewer.readParameter(names[i], false);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
162 if (s != null) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
163 for (int j = 0; j < values[i].length; j++) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
164 if (s.equalsIgnoreCase(values[i][j])) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
165 choices[i].select(j);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
166 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
167 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
168 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
169 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
170
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
171 // FIXME: Provide some sort of GUI for "Scaling Factor".
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
172
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
173 autoScale = false;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
174 scalingFactor = 100;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
175 String s = viewer.readParameter("Scaling Factor", false);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
176 if (s != null) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
177 if (s.equalsIgnoreCase("Auto")) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
178 autoScale = true;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
179 } else {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
180 // Remove the '%' char at the end of string if present.
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
181 if (s.charAt(s.length() - 1) == '%') {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
182 s = s.substring(0, s.length() - 1);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
183 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
184 // Convert to an integer.
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
185 try {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
186 scalingFactor = Integer.parseInt(s);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
187 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
188 catch (NumberFormatException e) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
189 scalingFactor = 100;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
190 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
191 // Make sure scalingFactor is in the range of [1..1000].
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
192 if (scalingFactor < 1) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
193 scalingFactor = 1;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
194 } else if (scalingFactor > 1000) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
195 scalingFactor = 1000;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
196 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
197 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
198 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
199
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
200 // Make the booleans and encodings array correspond to the state of the GUI
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
201
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
202 setEncodings();
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
203 setColorFormat();
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
204 setOtherOptions();
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
205 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
206
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
207
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
208 //
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
209 // Disable the shareDesktop option
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
210 //
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
211
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
212 void disableShareDesktop() {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
213 labels[shareDesktopIndex].setEnabled(false);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
214 choices[shareDesktopIndex].setEnabled(false);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
215 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
216
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
217 //
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
218 // setEncodings looks at the encoding, compression level, JPEG
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
219 // quality level, cursor shape updates and copyRect choices and sets
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
220 // corresponding variables properly. Then it calls the VncViewer's
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
221 // setEncodings method to send a SetEncodings message to the RFB
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
222 // server.
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
223 //
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
224
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
225 void setEncodings() {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
226 useCopyRect = choices[useCopyRectIndex].getSelectedItem().equals("Yes");
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
227
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
228 preferredEncoding = RfbProto.EncodingRaw;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
229 boolean enableCompressLevel = false;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
230
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
231 if (choices[encodingIndex].getSelectedItem().equals("RRE")) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
232 preferredEncoding = RfbProto.EncodingRRE;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
233 } else if (choices[encodingIndex].getSelectedItem().equals("CoRRE")) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
234 preferredEncoding = RfbProto.EncodingCoRRE;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
235 } else if (choices[encodingIndex].getSelectedItem().equals("Hextile")) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
236 preferredEncoding = RfbProto.EncodingHextile;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
237 } else if (choices[encodingIndex].getSelectedItem().equals("ZRLE")) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
238 preferredEncoding = RfbProto.EncodingZRLE;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
239 } else if (choices[encodingIndex].getSelectedItem().equals("Zlib")) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
240 preferredEncoding = RfbProto.EncodingZlib;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
241 enableCompressLevel = true;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
242 } else if (choices[encodingIndex].getSelectedItem().equals("Tight")) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
243 preferredEncoding = RfbProto.EncodingTight;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
244 enableCompressLevel = true;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
245 } else if (choices[encodingIndex].getSelectedItem().equals("Auto")) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
246 preferredEncoding = -1;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
247 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
248
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
249 // Handle compression level setting.
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
250
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
251 try {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
252 compressLevel =
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
253 Integer.parseInt(choices[compressLevelIndex].getSelectedItem());
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
254 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
255 catch (NumberFormatException e) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
256 compressLevel = -1;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
257 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
258 if (compressLevel < 1 || compressLevel > 9) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
259 compressLevel = -1;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
260 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
261 labels[compressLevelIndex].setEnabled(enableCompressLevel);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
262 choices[compressLevelIndex].setEnabled(enableCompressLevel);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
263
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
264 // Handle JPEG quality setting.
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
265
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
266 try {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
267 jpegQuality =
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
268 Integer.parseInt(choices[jpegQualityIndex].getSelectedItem());
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
269 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
270 catch (NumberFormatException e) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
271 jpegQuality = -1;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
272 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
273 if (jpegQuality < 0 || jpegQuality > 9) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
274 jpegQuality = -1;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
275 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
276
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
277 // Request cursor shape updates if necessary.
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
278
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
279 requestCursorUpdates =
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
280 !choices[cursorUpdatesIndex].getSelectedItem().equals("Disable");
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
281
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
282 if (requestCursorUpdates) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
283 ignoreCursorUpdates =
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
284 choices[cursorUpdatesIndex].getSelectedItem().equals("Ignore");
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
285 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
286
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
287 viewer.setEncodings();
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
288 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
289
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
290 //
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
291 // setColorFormat sets eightBitColors variable depending on the GUI
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
292 // setting, causing switches between 8-bit and 24-bit colors mode if
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
293 // necessary.
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
294 //
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
295
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
296 void setColorFormat() {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
297
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
298 eightBitColors =
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
299 choices[eightBitColorsIndex].getSelectedItem().equals("Yes");
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
300
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
301 boolean enableJPEG = !eightBitColors;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
302
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
303 labels[jpegQualityIndex].setEnabled(enableJPEG);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
304 choices[jpegQualityIndex].setEnabled(enableJPEG);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
305 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
306
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
307 //
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
308 // setOtherOptions looks at the "other" choices (ones that do not
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
309 // cause sending any protocol messages) and sets the boolean flags
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
310 // appropriately.
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
311 //
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
312
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
313 void setOtherOptions() {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
314
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
315 reverseMouseButtons2And3
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
316 = choices[mouseButtonIndex].getSelectedItem().equals("Reversed");
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
317
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
318 viewOnly
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
319 = choices[viewOnlyIndex].getSelectedItem().equals("Yes");
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
320 if (viewer.vc != null)
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
321 viewer.vc.enableInput(!viewOnly);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
322
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
323 shareDesktop
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
324 = choices[shareDesktopIndex].getSelectedItem().equals("Yes");
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
325
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
326 String scaleString = choices[scaleCursorIndex].getSelectedItem();
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
327 if (scaleString.endsWith("%"))
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
328 scaleString = scaleString.substring(0, scaleString.length() - 1);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
329 try {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
330 scaleCursor = Integer.parseInt(scaleString);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
331 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
332 catch (NumberFormatException e) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
333 scaleCursor = 0;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
334 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
335 if (scaleCursor < 10 || scaleCursor > 500) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
336 scaleCursor = 0;
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
337 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
338 if (requestCursorUpdates && !ignoreCursorUpdates && !viewOnly) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
339 labels[scaleCursorIndex].setEnabled(true);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
340 choices[scaleCursorIndex].setEnabled(true);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
341 } else {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
342 labels[scaleCursorIndex].setEnabled(false);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
343 choices[scaleCursorIndex].setEnabled(false);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
344 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
345 if (viewer.vc != null)
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
346 viewer.vc.createSoftCursor(); // update cursor scaling
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
347 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
348
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
349
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
350 //
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
351 // Respond to actions on Choice controls
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
352 //
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
353
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
354 public void itemStateChanged(ItemEvent evt) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
355 Object source = evt.getSource();
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
356
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
357 if (source == choices[encodingIndex] ||
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
358 source == choices[compressLevelIndex] ||
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
359 source == choices[jpegQualityIndex] ||
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
360 source == choices[cursorUpdatesIndex] ||
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
361 source == choices[useCopyRectIndex]) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
362
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
363 setEncodings();
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
364
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
365 if (source == choices[cursorUpdatesIndex]) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
366 setOtherOptions(); // update scaleCursor state
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
367 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
368
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
369 } else if (source == choices[eightBitColorsIndex]) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
370
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
371 setColorFormat();
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
372
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
373 } else if (source == choices[mouseButtonIndex] ||
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
374 source == choices[shareDesktopIndex] ||
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
375 source == choices[viewOnlyIndex] ||
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
376 source == choices[scaleCursorIndex]) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
377
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
378 setOtherOptions();
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
379
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
380 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
381 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
382
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
383 //
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
384 // Respond to button press
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
385 //
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
386
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
387 public void actionPerformed(ActionEvent evt) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
388 if (evt.getSource() == closeButton)
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
389 setVisible(false);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
390 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
391
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
392 //
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
393 // Respond to window events
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
394 //
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
395
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
396 public void windowClosing(WindowEvent evt) {
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
397 setVisible(false);
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
398 }
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
399
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
400 public void windowActivated(WindowEvent evt) {}
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
401 public void windowDeactivated(WindowEvent evt) {}
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
402 public void windowOpened(WindowEvent evt) {}
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
403 public void windowClosed(WindowEvent evt) {}
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
404 public void windowIconified(WindowEvent evt) {}
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
405 public void windowDeiconified(WindowEvent evt) {}
30bb7074acb1 upload all file of tighVNCProxy
e085711
parents:
diff changeset
406 }