summaryrefslogtreecommitdiffstats
path: root/java/src/com/tightvnc/vncviewer/ButtonPanel.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/src/com/tightvnc/vncviewer/ButtonPanel.java')
-rw-r--r--java/src/com/tightvnc/vncviewer/ButtonPanel.java18
1 files changed, 17 insertions, 1 deletions
diff --git a/java/src/com/tightvnc/vncviewer/ButtonPanel.java b/java/src/com/tightvnc/vncviewer/ButtonPanel.java
index 422e6e2c..63ad6a15 100644
--- a/java/src/com/tightvnc/vncviewer/ButtonPanel.java
+++ b/java/src/com/tightvnc/vncviewer/ButtonPanel.java
@@ -39,7 +39,9 @@ class ButtonPanel extends Panel implements ActionListener {
Button ctrlAltDelButton;
Button refreshButton;
Button selectButton;
+ Button videoIgnoreButton;
+ final String videoIgnoreLabel = "Video Ignore";
final String selectEnterLabel = "Select Video Area";
final String selectLeaveLabel = "Hide Selection";
@@ -83,6 +85,16 @@ class ButtonPanel extends Panel implements ActionListener {
selectButton.addActionListener(this);
}
+ /**
+ * Add video ignore button to the ButtonPanel.
+ */
+ public void addVideoIgnoreButton() {
+ videoIgnoreButton = new Button(videoIgnoreLabel);
+ videoIgnoreButton.setEnabled(false);
+ add(selectButton);
+ videoIgnoreButton.addActionListener(this);
+ }
+
//
// Enable buttons on successful connection.
//
@@ -144,7 +156,11 @@ class ButtonPanel extends Panel implements ActionListener {
} else if (evt.getSource() == clipboardButton) {
viewer.clipboard.setVisible(!viewer.clipboard.isVisible());
-
+ } else if (evt.getSource() == videoIgnoreButton) {
+ //
+ // Do something onVideoIgnoreButtonClick event
+ // ...
+ //
} else if (evt.getSource() == ctrlAltDelButton) {
try {
final int modifiers = InputEvent.CTRL_MASK | InputEvent.ALT_MASK;