layout changes
authoramwaterhouse <Andrew Waterhouse>
Wed, 25 May 2005 16:43:29 +0000 (16:43 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 25 May 2005 16:43:29 +0000 (16:43 +0000)
src/jalview/jbgui/GCutAndPasteTransfer.java

index 6922fd3..c816886 100755 (executable)
@@ -1,82 +1,57 @@
-/********************
- * 2004 Jalview Reengineered
- * Barton Group
- * Dundee University
- *
- * AM Waterhouse
- *******************/
-
-package jalview.jbgui;
-
-import javax.swing.*;
-import java.awt.*;
-import java.awt.event.*;
-
-
-public class GCutAndPasteTransfer extends JPanel
-{
-  protected JTextArea textarea = new JTextArea();
-  protected JComboBox formatChoice = new JComboBox();
-  protected JLabel formatLabel = new JLabel();
-  protected JScrollPane scrollPane = new JScrollPane();
-  public GCutAndPasteTransfer()
-  {
-    try
-    {
-      jbInit();
-    }
-    catch(Exception e)
-    {
-      e.printStackTrace();
-    }
-
-  }
-  private void jbInit() throws Exception
-  {
-    textarea.setFont(new java.awt.Font("Verdana", 0, 12));
-    textarea.setBorder(BorderFactory.createLineBorder(Color.black));
-    textarea.setText("Paste your alignment file here");
-    textarea.addMouseListener(new java.awt.event.MouseAdapter()
-    {
-      public void mousePressed(MouseEvent e)
-      {
-        textarea_mousePressed(e);
-      }
-    });
-    formatChoice.setFont(new java.awt.Font("Verdana", 0, 12));
-    formatChoice.setBounds(new Rectangle(194, 269, 159, 22));
-    formatChoice.addActionListener(new java.awt.event.ActionListener()
-    {
-      public void actionPerformed(ActionEvent e)
-      {
-        formatChoice_actionPerformed(e);
-      }
-    });
-    formatLabel.setFont(new java.awt.Font("Verdana", 0, 12));
-    formatLabel.setHorizontalAlignment(SwingConstants.TRAILING);
-    formatLabel.setText("Alignment Format");
-    formatLabel.setBounds(new Rectangle(76, 272, 110, 16));
-    this.setLayout(null);
-    this.setPreferredSize(new Dimension(400, 300));
-    scrollPane.setBounds(new Rectangle(5, 5, 389, 256));
-    this.add(formatLabel, null);
-    this.add(formatChoice, null);
-    this.add(scrollPane, null);
-    scrollPane.getViewport().add(textarea, null);
-
-  }
-
-
-
-  protected void formatChoice_actionPerformed(ActionEvent e)
-  {
-
-  }
-
-  void textarea_mousePressed(MouseEvent e)
-  {
-    if(textarea.getText().equals("Paste your alignment file here"))
-      textarea.setText("");
-  }
-
-}
+/********************\r
+ * 2004 Jalview Reengineered\r
+ * Barton Group\r
+ * Dundee University\r
+ *\r
+ * AM Waterhouse\r
+ *******************/\r
+\r
+package jalview.jbgui;\r
+\r
+import javax.swing.*;\r
+import java.awt.*;\r
+import java.awt.event.*;\r
+\r
+\r
+public class GCutAndPasteTransfer extends JPanel\r
+{\r
+  protected JTextArea textarea = new JTextArea();\r
+  protected JScrollPane scrollPane = new JScrollPane();\r
+  BorderLayout borderLayout1 = new BorderLayout();\r
+  public GCutAndPasteTransfer()\r
+  {\r
+    try\r
+    {\r
+      jbInit();\r
+    }\r
+    catch(Exception e)\r
+    {\r
+      e.printStackTrace();\r
+    }\r
+\r
+  }\r
+  private void jbInit() throws Exception\r
+  {\r
+    textarea.setFont(new java.awt.Font("Verdana", 0, 12));\r
+    textarea.setBorder(BorderFactory.createLineBorder(Color.black));\r
+    textarea.setText("Paste your alignment file here");\r
+    textarea.addMouseListener(new java.awt.event.MouseAdapter()\r
+    {\r
+      public void mousePressed(MouseEvent e)\r
+      {\r
+        textarea_mousePressed(e);\r
+      }\r
+    });\r
+    this.setLayout(borderLayout1);\r
+    this.setPreferredSize(new Dimension(400, 300));\r
+    scrollPane.getViewport().add(textarea, null);\r
+    this.add(scrollPane, java.awt.BorderLayout.CENTER);\r
+  }\r
+\r
+  void textarea_mousePressed(MouseEvent e)\r
+  {\r
+    if(textarea.getText().equals("Paste your alignment file here"))\r
+      textarea.setText("");\r
+  }\r
+\r
+}\r