JAL-1517 update copyright to version 2.8.2
[jalview.git] / src / jalview / jbgui / GCutAndPasteTransfer.java
index 122e100..76ff041 100755 (executable)
@@ -1,23 +1,26 @@
 /*
- * Jalview - A Sequence Alignment Editor and Viewer (Development Version 2.4.1)
- * Copyright (C) 2009 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
+ * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
+ * Copyright (C) 2014 The Jalview Authors
  * 
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
+ * This file is part of Jalview.
  * 
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
+ * Jalview is free software: you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License 
+ * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
+ *  
+ * Jalview is distributed in the hope that it will be useful, but 
+ * WITHOUT ANY WARRANTY; without even the implied warranty 
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
+ * PURPOSE.  See the GNU General Public License for more details.
  * 
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
+ * You should have received a copy of the GNU General Public License along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
+ * The Jalview Authors are detailed in the 'AUTHORS' file.
  */
 package jalview.jbgui;
 
+import jalview.gui.JvSwingUtils;
+import jalview.util.MessageManager;
+
 import java.awt.*;
 import java.awt.event.*;
 import javax.swing.*;
@@ -77,13 +80,13 @@ public class GCutAndPasteTransfer extends JInternalFrame
    * DOCUMENT ME!
    * 
    * @throws Exception
-   *                 DOCUMENT ME!
+   *           DOCUMENT ME!
    */
   private void jbInit() throws Exception
   {
     scrollPane.setBorder(null);
-    ok.setFont(new java.awt.Font("Verdana", Font.PLAIN, 11));
-    ok.setText("New Window");
+    ok.setFont(JvSwingUtils.getLabelFont());
+    ok.setText(MessageManager.getString("label.new_window"));
     ok.addActionListener(new ActionListener()
     {
       public void actionPerformed(ActionEvent e)
@@ -91,7 +94,7 @@ public class GCutAndPasteTransfer extends JInternalFrame
         ok_actionPerformed(e);
       }
     });
-    cancel.setText("Close");
+    cancel.setText(MessageManager.getString("action.close"));
     cancel.addActionListener(new ActionListener()
     {
       public void actionPerformed(ActionEvent e)
@@ -101,7 +104,7 @@ public class GCutAndPasteTransfer extends JInternalFrame
     });
     textarea.setBorder(null);
 
-    selectAll.setText("Select All");
+    selectAll.setText(MessageManager.getString("action.select_all"));
     selectAll.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
             java.awt.event.KeyEvent.VK_A, Toolkit.getDefaultToolkit()
                     .getMenuShortcutKeyMask(), false));
@@ -112,8 +115,8 @@ public class GCutAndPasteTransfer extends JInternalFrame
         selectAll_actionPerformed(e);
       }
     });
-    jMenu1.setText("File");
-    save.setText("Save");
+    jMenu1.setText(MessageManager.getString("action.file"));
+    save.setText(MessageManager.getString("action.save"));
     save.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
             java.awt.event.KeyEvent.VK_S, Toolkit.getDefaultToolkit()
                     .getMenuShortcutKeyMask(), false));
@@ -140,8 +143,8 @@ public class GCutAndPasteTransfer extends JInternalFrame
         textarea_mousePressed(e);
       }
     });
-    editMenu.setText("Edit");
-    pasteMenu.setText("Paste");
+    editMenu.setText(MessageManager.getString("action.edit"));
+    pasteMenu.setText(MessageManager.getString("action.paste"));
     pasteMenu.addActionListener(new ActionListener()
     {
       public void actionPerformed(ActionEvent e)
@@ -149,7 +152,7 @@ public class GCutAndPasteTransfer extends JInternalFrame
         pasteMenu_actionPerformed(e);
       }
     });
-    copyItem.setText("Copy");
+    copyItem.setText(MessageManager.getString("action.copy"));
     copyItem.addActionListener(new ActionListener()
     {
       public void actionPerformed(ActionEvent e)
@@ -173,7 +176,7 @@ public class GCutAndPasteTransfer extends JInternalFrame
    * DOCUMENT ME!
    * 
    * @param e
-   *                DOCUMENT ME!
+   *          DOCUMENT ME!
    */
   public void textarea_mousePressed(MouseEvent e)
   {
@@ -184,7 +187,7 @@ public class GCutAndPasteTransfer extends JInternalFrame
    * DOCUMENT ME!
    * 
    * @param e
-   *                DOCUMENT ME!
+   *          DOCUMENT ME!
    */
   public void copyItem_actionPerformed(ActionEvent e)
   {
@@ -194,7 +197,7 @@ public class GCutAndPasteTransfer extends JInternalFrame
    * DOCUMENT ME!
    * 
    * @param e
-   *                DOCUMENT ME!
+   *          DOCUMENT ME!
    */
   public void pasteMenu_actionPerformed(ActionEvent e)
   {
@@ -204,7 +207,7 @@ public class GCutAndPasteTransfer extends JInternalFrame
    * DOCUMENT ME!
    * 
    * @param e
-   *                DOCUMENT ME!
+   *          DOCUMENT ME!
    */
   public void ok_actionPerformed(ActionEvent e)
   {
@@ -214,7 +217,7 @@ public class GCutAndPasteTransfer extends JInternalFrame
    * DOCUMENT ME!
    * 
    * @param e
-   *                DOCUMENT ME!
+   *          DOCUMENT ME!
    */
   public void cancel_actionPerformed(ActionEvent e)
   {