b4e63217d9bbabb47f75126cf97ee8c1f7ec7ed8
[jalview.git] / src / jalview / jbgui / GPairwiseAlignPanel.java
1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.4)
3  * Copyright (C) 2008 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 import javax.swing.*;
24
25 /**
26  * DOCUMENT ME!
27  * 
28  * @author $author$
29  * @version $Revision$
30  */
31 public class GPairwiseAlignPanel extends JPanel
32 {
33   protected JScrollPane scrollPane = new JScrollPane();
34
35   protected JTextArea textarea = new JTextArea();
36
37   protected JButton viewInEditorButton = new JButton();
38
39   JPanel jPanel1 = new JPanel();
40
41   BorderLayout borderLayout1 = new BorderLayout();
42
43   /**
44    * Creates a new GPairwiseAlignPanel object.
45    */
46   public GPairwiseAlignPanel()
47   {
48     try
49     {
50       jbInit();
51     } catch (Exception e)
52     {
53       e.printStackTrace();
54     }
55   }
56
57   /**
58    * DOCUMENT ME!
59    * 
60    * @throws Exception
61    *                 DOCUMENT ME!
62    */
63   private void jbInit() throws Exception
64   {
65     this.setLayout(borderLayout1);
66     textarea.setFont(new java.awt.Font("Monospaced", 0, 12));
67     textarea.setText("");
68     textarea.setWrapStyleWord(false);
69     viewInEditorButton.setFont(new java.awt.Font("Verdana", 0, 12));
70     viewInEditorButton.setText("View in alignment editor");
71     viewInEditorButton
72             .addActionListener(new java.awt.event.ActionListener()
73             {
74               public void actionPerformed(ActionEvent e)
75               {
76                 viewInEditorButton_actionPerformed(e);
77               }
78             });
79     this.add(scrollPane, BorderLayout.CENTER);
80     scrollPane.getViewport().add(textarea, null);
81     this.add(jPanel1, BorderLayout.SOUTH);
82     jPanel1.add(viewInEditorButton, null);
83   }
84
85   /**
86    * DOCUMENT ME!
87    * 
88    * @param e
89    *                DOCUMENT ME!
90    */
91   protected void viewInEditorButton_actionPerformed(ActionEvent e)
92   {
93   }
94 }