5e56bd925d08d46eacede1f860e4a6ead12257b8
[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
32     extends JPanel
33 {
34   protected JScrollPane scrollPane = new JScrollPane();
35   protected JTextArea textarea = new JTextArea();
36   protected JButton viewInEditorButton = new JButton();
37   JPanel jPanel1 = new JPanel();
38   BorderLayout borderLayout1 = new BorderLayout();
39
40   /**
41    * Creates a new GPairwiseAlignPanel object.
42    */
43   public GPairwiseAlignPanel()
44   {
45     try
46     {
47       jbInit();
48     }
49     catch (Exception e)
50     {
51       e.printStackTrace();
52     }
53   }
54
55   /**
56    * DOCUMENT ME!
57    *
58    * @throws Exception DOCUMENT ME!
59    */
60   private void jbInit()
61       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 }