JAL-1503 update version in GPL header
[jalview.git] / src / jalview / jbgui / GPairwiseAlignPanel.java
1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.1)
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 jalview.util.MessageManager;
22
23 import java.awt.*;
24 import java.awt.event.*;
25 import javax.swing.*;
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
37   protected JTextArea textarea = new JTextArea();
38
39   protected JButton viewInEditorButton = new JButton();
40
41   JPanel jPanel1 = new JPanel();
42
43   BorderLayout borderLayout1 = new BorderLayout();
44
45   /**
46    * Creates a new GPairwiseAlignPanel object.
47    */
48   public GPairwiseAlignPanel()
49   {
50     try
51     {
52       jbInit();
53     } catch (Exception e)
54     {
55       e.printStackTrace();
56     }
57   }
58
59   /**
60    * DOCUMENT ME!
61    * 
62    * @throws Exception
63    *           DOCUMENT ME!
64    */
65   private void jbInit() throws Exception
66   {
67     this.setLayout(borderLayout1);
68     textarea.setFont(new java.awt.Font("Monospaced", 0, 12));
69     textarea.setText("");
70     textarea.setWrapStyleWord(false);
71     viewInEditorButton.setFont(new java.awt.Font("Verdana", 0, 12));
72     viewInEditorButton.setText(MessageManager.getString("label.view_alignment_editor"));
73     viewInEditorButton
74             .addActionListener(new java.awt.event.ActionListener()
75             {
76               public void actionPerformed(ActionEvent e)
77               {
78                 viewInEditorButton_actionPerformed(e);
79               }
80             });
81     this.add(scrollPane, BorderLayout.CENTER);
82     scrollPane.getViewport().add(textarea, null);
83     this.add(jPanel1, BorderLayout.SOUTH);
84     jPanel1.add(viewInEditorButton, null);
85   }
86
87   /**
88    * DOCUMENT ME!
89    * 
90    * @param e
91    *          DOCUMENT ME!
92    */
93   protected void viewInEditorButton_actionPerformed(ActionEvent e)
94   {
95   }
96 }