summaryrefslogtreecommitdiffstats
path: root/java/src/com/tightvnc
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/com/tightvnc')
-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());
}