No need for vetoablechange
authoramwaterhouse <Andrew Waterhouse>
Fri, 7 Apr 2006 13:58:11 +0000 (13:58 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 7 Apr 2006 13:58:11 +0000 (13:58 +0000)
src/jalview/jbgui/GCutAndPasteTransfer.java

index a917ebe..6a89e2c 100755 (executable)
@@ -22,8 +22,8 @@ import java.awt.*;
 import java.awt.event.*;\r
 \r
 import java.beans.PropertyChangeEvent;\r
-import java.beans.PropertyVetoException;\r
-import java.beans.VetoableChangeListener;\r
+//import java.beans.PropertyVetoException;\r
+//import java.beans.VetoableChangeListener;\r
 \r
 import javax.swing.*;\r
 \r
@@ -91,20 +91,7 @@ public class GCutAndPasteTransfer extends JInternalFrame
                 }\r
             });\r
         textarea.setBorder(null);\r
-        textarea.addVetoableChangeListener(new VetoableChangeListener()\r
-            {\r
-                public void vetoableChange(PropertyChangeEvent evt)\r
-                {\r
-                    try\r
-                    {\r
-                        textarea_vetoableChange(evt);\r
-                    }\r
-                    catch (java.beans.PropertyVetoException exception0)\r
-                    {\r
-                        exception0.printStackTrace();\r
-                    }\r
-                }\r
-            });\r
+\r
     selectAll.setText("Select All");\r
     selectAll.addActionListener(new ActionListener()\r
     {\r
@@ -196,17 +183,6 @@ public class GCutAndPasteTransfer extends JInternalFrame
     {\r
     }\r
 \r
-    /**\r
-     * DOCUMENT ME!\r
-     *\r
-     * @param evt DOCUMENT ME!\r
-     *\r
-     * @throws PropertyVetoException DOCUMENT ME!\r
-     */\r
-    public void textarea_vetoableChange(PropertyChangeEvent evt)\r
-        throws PropertyVetoException\r
-    {\r
-    }\r
 \r
     public void selectAll_actionPerformed(ActionEvent e)\r
     {\r