Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 1 | // |
| 2 | // Copyright (C) 2001,2002 HorizonLive.com, Inc. All Rights Reserved. |
| 3 | // Copyright (C) 1999 AT&T Laboratories Cambridge. All Rights Reserved. |
| 4 | // |
| 5 | // This is free software; you can redistribute it and/or modify |
| 6 | // it under the terms of the GNU General Public License as published by |
| 7 | // the Free Software Foundation; either version 2 of the License, or |
| 8 | // (at your option) any later version. |
| 9 | // |
| 10 | // This software is distributed in the hope that it will be useful, |
| 11 | // but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | // GNU General Public License for more details. |
| 14 | // |
| 15 | // You should have received a copy of the GNU General Public License |
| 16 | // along with this software; if not, write to the Free Software |
| 17 | // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
| 18 | // USA. |
| 19 | // |
| 20 | |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 21 | import java.awt.*; |
| 22 | import java.awt.event.*; |
| 23 | import java.io.*; |
Constantin Kaplinsky | 5d99c95 | 2002-05-25 09:49:23 +0000 | [diff] [blame] | 24 | import java.net.*; |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 25 | |
Constantin Kaplinsky | 903009e | 2002-05-20 10:55:47 +0000 | [diff] [blame] | 26 | public class RfbPlayer extends java.applet.Applet |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 27 | implements java.lang.Runnable, WindowListener { |
| 28 | |
| 29 | boolean inAnApplet = true; |
| 30 | boolean inSeparateFrame = false; |
| 31 | |
| 32 | // |
| 33 | // main() is called when run as a java program from the command line. |
| 34 | // It simply runs the applet inside a newly-created frame. |
| 35 | // |
| 36 | |
| 37 | public static void main(String[] argv) { |
Constantin Kaplinsky | 903009e | 2002-05-20 10:55:47 +0000 | [diff] [blame] | 38 | RfbPlayer p = new RfbPlayer(); |
| 39 | p.mainArgs = argv; |
| 40 | p.inAnApplet = false; |
| 41 | p.inSeparateFrame = true; |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 42 | |
Constantin Kaplinsky | 903009e | 2002-05-20 10:55:47 +0000 | [diff] [blame] | 43 | p.init(); |
| 44 | p.start(); |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 45 | } |
| 46 | |
| 47 | String[] mainArgs; |
| 48 | |
| 49 | RfbProto rfb; |
| 50 | Thread rfbThread; |
| 51 | |
| 52 | Frame vncFrame; |
| 53 | Container vncContainer; |
| 54 | ScrollPane desktopScrollPane; |
| 55 | GridBagLayout gridbag; |
| 56 | ButtonPanel buttonPanel; |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 57 | VncCanvas vc; |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 58 | |
Constantin Kaplinsky | 5d99c95 | 2002-05-25 09:49:23 +0000 | [diff] [blame] | 59 | String sessionURL; |
Constantin Kaplinsky | c833e01 | 2002-05-30 17:59:22 +0000 | [diff] [blame] | 60 | URL url; |
Constantin Kaplinsky | 972c257 | 2002-05-30 14:19:02 +0000 | [diff] [blame] | 61 | long initialTimeOffset; |
Constantin Kaplinsky | 7957ca1 | 2002-05-30 16:19:11 +0000 | [diff] [blame] | 62 | double playbackSpeed; |
Constantin Kaplinsky | 5a7133a | 2002-07-24 17:02:04 +0000 | [diff] [blame] | 63 | boolean autoPlay; |
Constantin Kaplinsky | 903009e | 2002-05-20 10:55:47 +0000 | [diff] [blame] | 64 | boolean showControls; |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 65 | int deferScreenUpdates; |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 66 | |
| 67 | // |
| 68 | // init() |
| 69 | // |
| 70 | |
| 71 | public void init() { |
| 72 | |
| 73 | readParameters(); |
| 74 | |
| 75 | if (inSeparateFrame) { |
Constantin Kaplinsky | 903009e | 2002-05-20 10:55:47 +0000 | [diff] [blame] | 76 | vncFrame = new Frame("RFB Session Player"); |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 77 | if (!inAnApplet) { |
| 78 | vncFrame.add("Center", this); |
| 79 | } |
| 80 | vncContainer = vncFrame; |
| 81 | } else { |
| 82 | vncContainer = this; |
| 83 | } |
| 84 | |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 85 | if (inSeparateFrame) |
| 86 | vncFrame.addWindowListener(this); |
| 87 | |
| 88 | rfbThread = new Thread(this); |
| 89 | rfbThread.start(); |
| 90 | } |
| 91 | |
| 92 | public void update(Graphics g) { |
| 93 | } |
| 94 | |
| 95 | // |
Constantin Kaplinsky | 903009e | 2002-05-20 10:55:47 +0000 | [diff] [blame] | 96 | // run() - executed by the rfbThread to read RFB data. |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 97 | // |
| 98 | |
| 99 | public void run() { |
| 100 | |
| 101 | gridbag = new GridBagLayout(); |
| 102 | vncContainer.setLayout(gridbag); |
| 103 | |
| 104 | GridBagConstraints gbc = new GridBagConstraints(); |
| 105 | gbc.gridwidth = GridBagConstraints.REMAINDER; |
| 106 | gbc.anchor = GridBagConstraints.NORTHWEST; |
| 107 | |
Constantin Kaplinsky | 903009e | 2002-05-20 10:55:47 +0000 | [diff] [blame] | 108 | if (showControls) { |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 109 | buttonPanel = new ButtonPanel(this); |
| 110 | buttonPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); |
| 111 | gridbag.setConstraints(buttonPanel, gbc); |
| 112 | vncContainer.add(buttonPanel); |
| 113 | } |
| 114 | |
Constantin Kaplinsky | 903009e | 2002-05-20 10:55:47 +0000 | [diff] [blame] | 115 | if (inSeparateFrame) { |
| 116 | vncFrame.pack(); |
| 117 | vncFrame.show(); |
| 118 | } else { |
| 119 | validate(); |
| 120 | } |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 121 | |
Constantin Kaplinsky | 903009e | 2002-05-20 10:55:47 +0000 | [diff] [blame] | 122 | try { |
Constantin Kaplinsky | c833e01 | 2002-05-30 17:59:22 +0000 | [diff] [blame] | 123 | url = new URL(sessionURL); |
Constantin Kaplinsky | 37cc43e | 2002-05-30 17:30:11 +0000 | [diff] [blame] | 124 | rfb = new RfbProto(url); |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 125 | |
| 126 | vc = new VncCanvas(this); |
| 127 | gbc.weightx = 1.0; |
| 128 | gbc.weighty = 1.0; |
| 129 | |
| 130 | if (inSeparateFrame) { |
| 131 | |
| 132 | // Create a panel which itself is resizeable and can hold |
| 133 | // non-resizeable VncCanvas component at the top left corner. |
| 134 | Panel canvasPanel = new Panel(); |
| 135 | canvasPanel.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0)); |
| 136 | canvasPanel.add(vc); |
| 137 | |
| 138 | // Create a ScrollPane which will hold a panel with VncCanvas |
| 139 | // inside. |
| 140 | desktopScrollPane = new ScrollPane(ScrollPane.SCROLLBARS_AS_NEEDED); |
| 141 | gbc.fill = GridBagConstraints.BOTH; |
| 142 | gridbag.setConstraints(desktopScrollPane, gbc); |
| 143 | desktopScrollPane.add(canvasPanel); |
| 144 | |
| 145 | // Finally, add our ScrollPane to the Frame window. |
| 146 | vncFrame.add(desktopScrollPane); |
| 147 | vncFrame.setTitle(rfb.desktopName); |
| 148 | vncFrame.pack(); |
| 149 | vc.resizeDesktopFrame(); |
| 150 | |
| 151 | } else { |
| 152 | |
| 153 | // Just add the VncCanvas component to the Applet. |
| 154 | gridbag.setConstraints(vc, gbc); |
| 155 | add(vc); |
| 156 | validate(); |
| 157 | |
| 158 | } |
| 159 | |
Constantin Kaplinsky | 903009e | 2002-05-20 10:55:47 +0000 | [diff] [blame] | 160 | while (true) { |
| 161 | try { |
Constantin Kaplinsky | 5a7133a | 2002-07-24 17:02:04 +0000 | [diff] [blame] | 162 | setPaused(!autoPlay); |
Constantin Kaplinsky | 37cc43e | 2002-05-30 17:30:11 +0000 | [diff] [blame] | 163 | rfb.fbs.setSpeed(playbackSpeed); |
Constantin Kaplinsky | d8770f6 | 2002-08-16 16:01:37 +0000 | [diff] [blame] | 164 | if (initialTimeOffset > rfb.fbs.getTimeOffset()) |
| 165 | setPos(initialTimeOffset); // don't seek backwards here |
Constantin Kaplinsky | 903009e | 2002-05-20 10:55:47 +0000 | [diff] [blame] | 166 | vc.processNormalProtocol(); |
| 167 | } catch (EOFException e) { |
Constantin Kaplinsky | d8770f6 | 2002-08-16 16:01:37 +0000 | [diff] [blame] | 168 | if (e.getMessage() != null && e.getMessage().equals("[REWIND]")) { |
| 169 | // A special type of EOFException allowing us to seek backwards. |
| 170 | initialTimeOffset = rfb.fbs.getSeekOffset(); |
| 171 | autoPlay = !rfb.fbs.isPaused(); |
| 172 | rfb.newSession(url); |
| 173 | } else { |
| 174 | // Return to the beginning after the playback is finished. |
| 175 | initialTimeOffset = 0; |
| 176 | autoPlay = false; |
| 177 | rfb.newSession(url); |
| 178 | } |
Constantin Kaplinsky | 903009e | 2002-05-20 10:55:47 +0000 | [diff] [blame] | 179 | } |
| 180 | } |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 181 | |
Constantin Kaplinsky | 903009e | 2002-05-20 10:55:47 +0000 | [diff] [blame] | 182 | } catch (FileNotFoundException e) { |
| 183 | fatalError(e.toString()); |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 184 | } catch (Exception e) { |
| 185 | e.printStackTrace(); |
| 186 | fatalError(e.toString()); |
| 187 | } |
| 188 | |
| 189 | } |
| 190 | |
Constantin Kaplinsky | ac6420d | 2002-05-29 17:05:39 +0000 | [diff] [blame] | 191 | public void setPaused(boolean paused) { |
Constantin Kaplinsky | 972c257 | 2002-05-30 14:19:02 +0000 | [diff] [blame] | 192 | if (showControls) |
| 193 | buttonPanel.setPaused(paused); |
Constantin Kaplinsky | 37cc43e | 2002-05-30 17:30:11 +0000 | [diff] [blame] | 194 | if (paused) { |
| 195 | rfb.fbs.pausePlayback(); |
| 196 | } else { |
| 197 | rfb.fbs.resumePlayback(); |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 198 | } |
| 199 | } |
| 200 | |
Constantin Kaplinsky | 7957ca1 | 2002-05-30 16:19:11 +0000 | [diff] [blame] | 201 | public double getSpeed() { |
| 202 | return playbackSpeed; |
| 203 | } |
| 204 | |
Constantin Kaplinsky | ce39d3b | 2002-05-30 15:54:56 +0000 | [diff] [blame] | 205 | public void setSpeed(double speed) { |
Constantin Kaplinsky | 7957ca1 | 2002-05-30 16:19:11 +0000 | [diff] [blame] | 206 | playbackSpeed = speed; |
Constantin Kaplinsky | 37cc43e | 2002-05-30 17:30:11 +0000 | [diff] [blame] | 207 | rfb.fbs.setSpeed(speed); |
Constantin Kaplinsky | ce39d3b | 2002-05-30 15:54:56 +0000 | [diff] [blame] | 208 | } |
| 209 | |
Constantin Kaplinsky | c833e01 | 2002-05-30 17:59:22 +0000 | [diff] [blame] | 210 | public void setPos(long pos) { |
Constantin Kaplinsky | 5b1b92a | 2002-05-30 18:02:34 +0000 | [diff] [blame] | 211 | rfb.fbs.setTimeOffset(pos); |
Constantin Kaplinsky | 30f786a | 2002-05-29 10:59:52 +0000 | [diff] [blame] | 212 | } |
| 213 | |
Constantin Kaplinsky | ce39d3b | 2002-05-30 15:54:56 +0000 | [diff] [blame] | 214 | |
Constantin Kaplinsky | fe07983 | 2002-05-29 00:52:32 +0000 | [diff] [blame] | 215 | public void updatePos() { |
Constantin Kaplinsky | 972c257 | 2002-05-30 14:19:02 +0000 | [diff] [blame] | 216 | if (showControls) |
Constantin Kaplinsky | c833e01 | 2002-05-30 17:59:22 +0000 | [diff] [blame] | 217 | buttonPanel.setPos(rfb.fbs.getTimeOffset()); |
Constantin Kaplinsky | fe07983 | 2002-05-29 00:52:32 +0000 | [diff] [blame] | 218 | } |
| 219 | |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 220 | // |
| 221 | // readParameters() - read parameters from the html source or from the |
| 222 | // command line. On the command line, the arguments are just a sequence of |
| 223 | // param_name/param_value pairs where the names and values correspond to |
| 224 | // those expected in the html applet tag source. |
| 225 | // |
| 226 | |
| 227 | public void readParameters() { |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 228 | |
Constantin Kaplinsky | 5d99c95 | 2002-05-25 09:49:23 +0000 | [diff] [blame] | 229 | sessionURL = readParameter("URL", true); |
Constantin Kaplinsky | 5a7133a | 2002-07-24 17:02:04 +0000 | [diff] [blame] | 230 | |
Constantin Kaplinsky | 972c257 | 2002-05-30 14:19:02 +0000 | [diff] [blame] | 231 | initialTimeOffset = readLongParameter("Position", 0); |
Constantin Kaplinsky | 7957ca1 | 2002-05-30 16:19:11 +0000 | [diff] [blame] | 232 | if (initialTimeOffset < 0) |
| 233 | initialTimeOffset = 0; |
Constantin Kaplinsky | 5a7133a | 2002-07-24 17:02:04 +0000 | [diff] [blame] | 234 | |
Constantin Kaplinsky | 7957ca1 | 2002-05-30 16:19:11 +0000 | [diff] [blame] | 235 | playbackSpeed = readDoubleParameter("Speed", 1.0); |
| 236 | if (playbackSpeed <= 0.0) |
| 237 | playbackSpeed = 1.0; |
Constantin Kaplinsky | 903009e | 2002-05-20 10:55:47 +0000 | [diff] [blame] | 238 | |
Constantin Kaplinsky | 5a7133a | 2002-07-24 17:02:04 +0000 | [diff] [blame] | 239 | autoPlay = false; |
| 240 | String str = readParameter("Autoplay", false); |
| 241 | if (str != null && str.equalsIgnoreCase("Yes")) |
| 242 | autoPlay = true; |
| 243 | |
Constantin Kaplinsky | 903009e | 2002-05-20 10:55:47 +0000 | [diff] [blame] | 244 | showControls = true; |
Constantin Kaplinsky | 5a7133a | 2002-07-24 17:02:04 +0000 | [diff] [blame] | 245 | str = readParameter("Show Controls", false); |
Constantin Kaplinsky | 903009e | 2002-05-20 10:55:47 +0000 | [diff] [blame] | 246 | if (str != null && str.equalsIgnoreCase("No")) |
| 247 | showControls = false; |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 248 | |
| 249 | if (inAnApplet) { |
| 250 | str = readParameter("Open New Window", false); |
| 251 | if (str != null && str.equalsIgnoreCase("Yes")) |
| 252 | inSeparateFrame = true; |
| 253 | } |
| 254 | |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 255 | // Fine tuning options. |
Constantin Kaplinsky | 972c257 | 2002-05-30 14:19:02 +0000 | [diff] [blame] | 256 | deferScreenUpdates = (int)readLongParameter("Defer screen updates", 20); |
| 257 | if (deferScreenUpdates < 0) |
| 258 | deferScreenUpdates = 0; // Just in case. |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 259 | } |
| 260 | |
| 261 | public String readParameter(String name, boolean required) { |
| 262 | if (inAnApplet) { |
| 263 | String s = getParameter(name); |
| 264 | if ((s == null) && required) { |
| 265 | fatalError(name + " parameter not specified"); |
| 266 | } |
| 267 | return s; |
| 268 | } |
| 269 | |
| 270 | for (int i = 0; i < mainArgs.length; i += 2) { |
| 271 | if (mainArgs[i].equalsIgnoreCase(name)) { |
| 272 | try { |
| 273 | return mainArgs[i+1]; |
| 274 | } catch (Exception e) { |
| 275 | if (required) { |
| 276 | fatalError(name + " parameter not specified"); |
| 277 | } |
| 278 | return null; |
| 279 | } |
| 280 | } |
| 281 | } |
| 282 | if (required) { |
| 283 | fatalError(name + " parameter not specified"); |
| 284 | } |
| 285 | return null; |
| 286 | } |
| 287 | |
Constantin Kaplinsky | 972c257 | 2002-05-30 14:19:02 +0000 | [diff] [blame] | 288 | long readLongParameter(String name, long defaultValue) { |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 289 | String str = readParameter(name, false); |
Constantin Kaplinsky | 972c257 | 2002-05-30 14:19:02 +0000 | [diff] [blame] | 290 | long result = defaultValue; |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 291 | if (str != null) { |
| 292 | try { |
Constantin Kaplinsky | 972c257 | 2002-05-30 14:19:02 +0000 | [diff] [blame] | 293 | result = Long.parseLong(str); |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 294 | } catch (NumberFormatException e) { } |
| 295 | } |
| 296 | return result; |
| 297 | } |
| 298 | |
Constantin Kaplinsky | 7957ca1 | 2002-05-30 16:19:11 +0000 | [diff] [blame] | 299 | double readDoubleParameter(String name, double defaultValue) { |
| 300 | String str = readParameter(name, false); |
| 301 | double result = defaultValue; |
| 302 | if (str != null) { |
| 303 | try { |
Constantin Kaplinsky | 3044ecb | 2002-06-04 18:29:05 +0000 | [diff] [blame] | 304 | result = Double.valueOf(str).doubleValue(); |
Constantin Kaplinsky | 7957ca1 | 2002-05-30 16:19:11 +0000 | [diff] [blame] | 305 | } catch (NumberFormatException e) { } |
| 306 | } |
| 307 | return result; |
| 308 | } |
| 309 | |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 310 | // |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 311 | // fatalError() - print out a fatal error message. |
| 312 | // |
| 313 | |
| 314 | public void fatalError(String str) { |
| 315 | System.out.println(str); |
| 316 | |
| 317 | if (inAnApplet) { |
| 318 | vncContainer.removeAll(); |
| 319 | if (rfb != null) { |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 320 | rfb = null; |
| 321 | } |
| 322 | Label errLabel = new Label(str); |
| 323 | errLabel.setFont(new Font("Helvetica", Font.PLAIN, 12)); |
| 324 | vncContainer.setLayout(new FlowLayout(FlowLayout.LEFT, 30, 30)); |
| 325 | vncContainer.add(errLabel); |
| 326 | if (inSeparateFrame) { |
| 327 | vncFrame.pack(); |
| 328 | } else { |
| 329 | validate(); |
| 330 | } |
| 331 | Thread.currentThread().stop(); |
| 332 | } else { |
| 333 | System.exit(1); |
| 334 | } |
| 335 | } |
| 336 | |
| 337 | |
| 338 | // |
| 339 | // This method is called before the applet is destroyed. |
| 340 | // |
| 341 | |
| 342 | public void destroy() { |
| 343 | vncContainer.removeAll(); |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 344 | if (rfb != null) { |
Constantin Kaplinsky | 903009e | 2002-05-20 10:55:47 +0000 | [diff] [blame] | 345 | rfb = null; |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 346 | } |
| 347 | if (inSeparateFrame) { |
| 348 | vncFrame.dispose(); |
| 349 | } |
| 350 | } |
| 351 | |
| 352 | |
| 353 | // |
| 354 | // Close application properly on window close event. |
| 355 | // |
| 356 | |
| 357 | public void windowClosing(WindowEvent evt) { |
Constantin Kaplinsky | 903009e | 2002-05-20 10:55:47 +0000 | [diff] [blame] | 358 | vncContainer.removeAll(); |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 359 | if (rfb != null) |
Constantin Kaplinsky | 903009e | 2002-05-20 10:55:47 +0000 | [diff] [blame] | 360 | rfb = null; |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 361 | |
| 362 | vncFrame.dispose(); |
| 363 | if (!inAnApplet) { |
| 364 | System.exit(0); |
| 365 | } |
| 366 | } |
| 367 | |
| 368 | // |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 369 | // Ignore window events we're not interested in. |
| 370 | // |
| 371 | |
Constantin Kaplinsky | 903009e | 2002-05-20 10:55:47 +0000 | [diff] [blame] | 372 | public void windowActivated (WindowEvent evt) {} |
Constantin Kaplinsky | 1215b99 | 2008-04-18 09:51:44 +0000 | [diff] [blame] | 373 | public void windowDeactivated (WindowEvent evt) {} |
| 374 | public void windowOpened(WindowEvent evt) {} |
| 375 | public void windowClosed(WindowEvent evt) {} |
| 376 | public void windowIconified(WindowEvent evt) {} |
| 377 | public void windowDeiconified(WindowEvent evt) {} |
| 378 | } |