updated to jalview 2.1 and begun ArchiveClient/VamsasClient/VamsasStore updates.
[jalview.git] / src / jalview / jbgui / GPairwiseAlignPanel.java
1 /*
2 * Jalview - A Sequence Alignment Editor and Viewer
3 * Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
18 */
19 package jalview.jbgui;
20
21 import java.awt.*;
22 import java.awt.event.*;
23
24 import javax.swing.*;
25
26
27 /**
28  * DOCUMENT ME!
29  *
30  * @author $author$
31  * @version $Revision$
32  */
33 public class GPairwiseAlignPanel extends JPanel
34 {
35     protected JScrollPane scrollPane = new JScrollPane();
36     protected JTextArea textarea = new JTextArea();
37     protected JButton viewInEditorButton = new JButton();
38     JPanel jPanel1 = new JPanel();
39     BorderLayout borderLayout1 = new BorderLayout();
40
41     /**
42      * Creates a new GPairwiseAlignPanel object.
43      */
44     public GPairwiseAlignPanel()
45     {
46         try
47         {
48             jbInit();
49         }
50         catch (Exception e)
51         {
52             e.printStackTrace();
53         }
54     }
55
56     /**
57      * DOCUMENT ME!
58      *
59      * @throws Exception DOCUMENT ME!
60      */
61     private void jbInit() throws Exception
62     {
63         this.setLayout(borderLayout1);
64         textarea.setFont(new java.awt.Font("Monospaced", 0, 12));
65         textarea.setText("");
66         textarea.setWrapStyleWord(false);
67         viewInEditorButton.setFont(new java.awt.Font("Verdana", 0, 12));
68         viewInEditorButton.setText("View in alignment editor");
69         viewInEditorButton.addActionListener(new java.awt.event.ActionListener()
70             {
71                 public void actionPerformed(ActionEvent e)
72                 {
73                     viewInEditorButton_actionPerformed(e);
74                 }
75             });
76         this.add(scrollPane, BorderLayout.CENTER);
77         scrollPane.getViewport().add(textarea, null);
78         this.add(jPanel1, BorderLayout.SOUTH);
79         jPanel1.add(viewInEditorButton, null);
80     }
81
82     /**
83      * DOCUMENT ME!
84      *
85      * @param e DOCUMENT ME!
86      */
87     protected void viewInEditorButton_actionPerformed(ActionEvent e)
88     {
89     }
90 }