[Developement] Add ability to add "Video Ignore" (use "addVideoIgnoreButton" method) button to button panel.

git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3459 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/java/src/com/tightvnc/vncviewer/ButtonPanel.java b/java/src/com/tightvnc/vncviewer/ButtonPanel.java
index 422e6e2..63ad6a1 100644
--- a/java/src/com/tightvnc/vncviewer/ButtonPanel.java
+++ b/java/src/com/tightvnc/vncviewer/ButtonPanel.java
@@ -39,7 +39,9 @@
   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 @@
     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 @@
 
     } 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;