JAL-1432 updated copyright notices
[jalview.git] / src / jalview / jbgui / GPairwiseAlignPanel.java
1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.0b1)
3  * Copyright (C) 2014 The Jalview Authors
4  * 
5  * This file is part of Jalview.
6  * 
7  * Jalview is free software: you can redistribute it and/or
8  * modify it under the terms of the GNU General Public License 
9  * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
10  *  
11  * Jalview is distributed in the hope that it will be useful, but 
12  * WITHOUT ANY WARRANTY; without even the implied warranty 
13  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
14  * PURPOSE.  See the GNU General Public License for more details.
15  * 
16  * You should have received a copy of the GNU General Public License along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
17  * The Jalview Authors are detailed in the 'AUTHORS' file.
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 }