summaryrefslogtreecommitdiffstats
path: root/java/src/com/tightvnc/rfbplayer
diff options
context:
space:
mode:
authorConstantin Kaplinsky <const@tightvnc.com>2008-06-17 09:27:52 +0000
committerConstantin Kaplinsky <const@tightvnc.com>2008-06-17 09:27:52 +0000
commitaa7b5614b85eb5f88298adb6ddefea9a69c50d0c (patch)
tree598b4553c489de903bbea4a5f2a4692ad3028a97 /java/src/com/tightvnc/rfbplayer
parent9d1fc6cddf1bc34920d4df7cd6d396f1cb2f7fe4 (diff)
downloadtigervnc-aa7b5614b85eb5f88298adb6ddefea9a69c50d0c.tar.gz
tigervnc-aa7b5614b85eb5f88298adb6ddefea9a69c50d0c.zip
Eliminated one call to a deprecated method, and one potential NullPointerException.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2586 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java/src/com/tightvnc/rfbplayer')
-rw-r--r--java/src/com/tightvnc/rfbplayer/RfbPlayer.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/tightvnc/rfbplayer/RfbPlayer.java b/java/src/com/tightvnc/rfbplayer/RfbPlayer.java
index 697dfae3..4b1f4fad 100644
--- a/java/src/com/tightvnc/rfbplayer/RfbPlayer.java
+++ b/java/src/com/tightvnc/rfbplayer/RfbPlayer.java
@@ -123,7 +123,7 @@ public class RfbPlayer extends java.applet.Applet
if (inSeparateFrame) {
vncFrame.pack();
- vncFrame.show();
+ vncFrame.setVisible(true);
} else {
validate();
}
@@ -260,7 +260,7 @@ public class RfbPlayer extends java.applet.Applet
}
public void updatePos() {
- if (showControls)
+ if (showControls && buttonPanel != null)
buttonPanel.setPos(rfb.fbs.getTimeOffset());
}