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