Formatting
[jalview.git] / src / jalview / jbgui / GWebserviceInfo.java
index 8f21f63..ca68115 100755 (executable)
@@ -1,26 +1,25 @@
 /*\r
-* Jalview - A Sequence Alignment Editor and Viewer\r
-* Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
-*\r
-* This program is free software; you can redistribute it and/or\r
-* modify it under the terms of the GNU General Public License\r
-* as published by the Free Software Foundation; either version 2\r
-* of the License, or (at your option) any later version.\r
-*\r
-* This program is distributed in the hope that it will be useful,\r
-* but WITHOUT ANY WARRANTY; without even the implied warranty of\r
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
-* GNU General Public License for more details.\r
-*\r
-* You should have received a copy of the GNU General Public License\r
-* along with this program; if not, write to the Free Software\r
-* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA\r
-*/\r
+ * Jalview - A Sequence Alignment Editor and Viewer\r
+ * Copyright (C) 2007 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
+ *\r
+ * This program is free software; you can redistribute it and/or\r
+ * modify it under the terms of the GNU General Public License\r
+ * as published by the Free Software Foundation; either version 2\r
+ * of the License, or (at your option) any later version.\r
+ *\r
+ * This program is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+ * GNU General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU General Public License\r
+ * along with this program; if not, write to the Free Software\r
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA\r
+ */\r
 package jalview.jbgui;\r
 \r
 import java.awt.*;\r
 import java.awt.event.*;\r
-\r
 import javax.swing.*;\r
 \r
 /**\r
@@ -29,86 +28,88 @@ import javax.swing.*;
  * @author $author$\r
  * @version $Revision$\r
  */\r
-public class GWebserviceInfo extends JPanel\r
+public class GWebserviceInfo\r
+    extends JPanel\r
 {\r
-    protected JTextArea infoText = new JTextArea();\r
-    JScrollPane jScrollPane1 = new JScrollPane();\r
-    JPanel jPanel1 = new JPanel();\r
-    BorderLayout borderLayout1 = new BorderLayout();\r
-    BorderLayout borderLayout2 = new BorderLayout();\r
-    protected JPanel titlePanel = new JPanel();\r
-    BorderLayout borderLayout3 = new BorderLayout();\r
-    protected JPanel buttonPanel = new JPanel();\r
-    public JButton cancel = new JButton();\r
-    public JButton showResultsNewFrame = new JButton();\r
-    public JButton mergeResults = new JButton();\r
-    GridBagLayout gridBagLayout1 = new GridBagLayout();\r
+  protected JTextArea infoText = new JTextArea();\r
+  JScrollPane jScrollPane1 = new JScrollPane();\r
+  JPanel jPanel1 = new JPanel();\r
+  BorderLayout borderLayout1 = new BorderLayout();\r
+  BorderLayout borderLayout2 = new BorderLayout();\r
+  protected JPanel titlePanel = new JPanel();\r
+  BorderLayout borderLayout3 = new BorderLayout();\r
+  protected JPanel buttonPanel = new JPanel();\r
+  public JButton cancel = new JButton();\r
+  public JButton showResultsNewFrame = new JButton();\r
+  public JButton mergeResults = new JButton();\r
+  GridBagLayout gridBagLayout1 = new GridBagLayout();\r
   /**\r
-     * Creates a new GWebserviceInfo object.\r
-     */\r
-    public GWebserviceInfo()\r
+   * Creates a new GWebserviceInfo object.\r
+   */\r
+  public GWebserviceInfo()\r
+  {\r
+    try\r
+    {\r
+      jbInit();\r
+    }\r
+    catch (Exception e)\r
     {\r
-        try\r
-        {\r
-            jbInit();\r
-        }\r
-        catch (Exception e)\r
-        {\r
-            e.printStackTrace();\r
-        }\r
+      e.printStackTrace();\r
     }\r
+  }\r
 \r
-    /**\r
-     * DOCUMENT ME!\r
-     *\r
-     * @throws Exception DOCUMENT ME!\r
-     */\r
-    private void jbInit() throws Exception\r
+  /**\r
+   * DOCUMENT ME!\r
+   *\r
+   * @throws Exception DOCUMENT ME!\r
+   */\r
+  private void jbInit()\r
+      throws Exception\r
+  {\r
+    infoText.setFont(new java.awt.Font("Verdana", 0, 10));\r
+    infoText.setBorder(null);\r
+    infoText.setEditable(false);\r
+    infoText.setText("");\r
+    infoText.setLineWrap(true);\r
+    infoText.setWrapStyleWord(true);\r
+    this.setLayout(borderLayout1);\r
+    jPanel1.setLayout(borderLayout2);\r
+    titlePanel.setBackground(Color.white);\r
+    titlePanel.setPreferredSize(new Dimension(0, 60));\r
+    titlePanel.setLayout(borderLayout3);\r
+    jScrollPane1.setBorder(null);\r
+    jScrollPane1.setPreferredSize(new Dimension(400, 70));\r
+    cancel.setFont(new java.awt.Font("Verdana", 0, 11));\r
+    cancel.setText("Cancel");\r
+    cancel.addActionListener(new java.awt.event.ActionListener()\r
     {\r
-        infoText.setFont(new java.awt.Font("Verdana", 0, 10));\r
-        infoText.setBorder(null);\r
-        infoText.setEditable(false);\r
-        infoText.setText("");\r
-        infoText.setLineWrap(true);\r
-        infoText.setWrapStyleWord(true);\r
-        this.setLayout(borderLayout1);\r
-        jPanel1.setLayout(borderLayout2);\r
-        titlePanel.setBackground(Color.white);\r
-        titlePanel.setPreferredSize(new Dimension(0, 60));\r
-        titlePanel.setLayout(borderLayout3);\r
-        jScrollPane1.setBorder(null);\r
-        jScrollPane1.setPreferredSize(new Dimension(400, 70));\r
-        cancel.setFont(new java.awt.Font("Verdana", 0, 11));\r
-        cancel.setText("Cancel");\r
-        cancel.addActionListener(new java.awt.event.ActionListener()\r
-            {\r
-                public void actionPerformed(ActionEvent e)\r
-                {\r
-                    cancel_actionPerformed(e);\r
-                }\r
-            });\r
+      public void actionPerformed(ActionEvent e)\r
+      {\r
+        cancel_actionPerformed(e);\r
+      }\r
+    });\r
     buttonPanel.setLayout(gridBagLayout1);\r
     buttonPanel.setOpaque(false);\r
     showResultsNewFrame.setText("New Window");\r
     mergeResults.setText("Merge Results");\r
     this.setBackground(Color.white);\r
     this.add(jPanel1, BorderLayout.NORTH);\r
-        jPanel1.add(jScrollPane1, BorderLayout.CENTER);\r
-        jScrollPane1.getViewport().add(infoText, null);\r
-        jPanel1.add(titlePanel, BorderLayout.NORTH);\r
-        titlePanel.add(buttonPanel, BorderLayout.EAST);\r
+    jPanel1.add(jScrollPane1, BorderLayout.CENTER);\r
+    jScrollPane1.getViewport().add(infoText, null);\r
+    jPanel1.add(titlePanel, BorderLayout.NORTH);\r
+    titlePanel.add(buttonPanel, BorderLayout.EAST);\r
     buttonPanel.add(cancel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0\r
-                                               , GridBagConstraints.CENTER,\r
-                                               GridBagConstraints.NONE,\r
-                                               new Insets(19, 6, 16, 4), 0, 0));\r
+        , GridBagConstraints.CENTER,\r
+        GridBagConstraints.NONE,\r
+        new Insets(19, 6, 16, 4), 0, 0));\r
   }\r
 \r
-    /**\r
-     * DOCUMENT ME!\r
-     *\r
-     * @param e DOCUMENT ME!\r
-     */\r
-    protected void cancel_actionPerformed(ActionEvent e)\r
-    {\r
-    }\r
+  /**\r
+   * DOCUMENT ME!\r
+   *\r
+   * @param e DOCUMENT ME!\r
+   */\r
+  protected void cancel_actionPerformed(ActionEvent e)\r
+  {\r
+  }\r
 }\r