JAL-1620 version bump and release notes
[jalview.git] / src / jalview / jbgui / GPairwiseAlignPanel.java
1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2b1)
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
10  * of the License, or (at your option) any later version.
11  *  
12  * Jalview is distributed in the hope that it will be useful, but 
13  * WITHOUT ANY WARRANTY; without even the implied warranty 
14  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
15  * PURPOSE.  See the GNU General Public License for more details.
16  * 
17  * You should have received a copy of the GNU General Public License
18  * along with Jalview.  If not, see <http://www.gnu.org/licenses/>.
19  * The Jalview Authors are detailed in the 'AUTHORS' file.
20  */
21 package jalview.jbgui;
22
23 import jalview.util.MessageManager;
24
25 import java.awt.*;
26 import java.awt.event.*;
27 import javax.swing.*;
28
29 /**
30  * DOCUMENT ME!
31  * 
32  * @author $author$
33  * @version $Revision$
34  */
35 public class GPairwiseAlignPanel extends JPanel
36 {
37   protected JScrollPane scrollPane = new JScrollPane();
38
39   protected JTextArea textarea = new JTextArea();
40
41   protected JButton viewInEditorButton = new JButton();
42
43   JPanel jPanel1 = new JPanel();
44
45   BorderLayout borderLayout1 = new BorderLayout();
46
47   /**
48    * Creates a new GPairwiseAlignPanel object.
49    */
50   public GPairwiseAlignPanel()
51   {
52     try
53     {
54       jbInit();
55     } catch (Exception e)
56     {
57       e.printStackTrace();
58     }
59   }
60
61   /**
62    * DOCUMENT ME!
63    * 
64    * @throws Exception
65    *           DOCUMENT ME!
66    */
67   private void jbInit() throws Exception
68   {
69     this.setLayout(borderLayout1);
70     textarea.setFont(new java.awt.Font("Monospaced", 0, 12));
71     textarea.setText("");
72     textarea.setWrapStyleWord(false);
73     viewInEditorButton.setFont(new java.awt.Font("Verdana", 0, 12));
74     viewInEditorButton.setText(MessageManager
75             .getString("label.view_alignment_editor"));
76     viewInEditorButton
77             .addActionListener(new java.awt.event.ActionListener()
78             {
79               public void actionPerformed(ActionEvent e)
80               {
81                 viewInEditorButton_actionPerformed(e);
82               }
83             });
84     this.add(scrollPane, BorderLayout.CENTER);
85     scrollPane.getViewport().add(textarea, null);
86     this.add(jPanel1, BorderLayout.SOUTH);
87     jPanel1.add(viewInEditorButton, null);
88   }
89
90   /**
91    * DOCUMENT ME!
92    * 
93    * @param e
94    *          DOCUMENT ME!
95    */
96   protected void viewInEditorButton_actionPerformed(ActionEvent e)
97   {
98   }
99 }