c50f677334f01c648c3ac3be2d4bb83360ed873f
[jalview.git] / src / jalview / jbgui / GPairwiseAlignPanel.java
1 /*
2  * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
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.getString("label.view_alignment_editor"));
75     viewInEditorButton
76             .addActionListener(new java.awt.event.ActionListener()
77             {
78               public void actionPerformed(ActionEvent e)
79               {
80                 viewInEditorButton_actionPerformed(e);
81               }
82             });
83     this.add(scrollPane, BorderLayout.CENTER);
84     scrollPane.getViewport().add(textarea, null);
85     this.add(jPanel1, BorderLayout.SOUTH);
86     jPanel1.add(viewInEditorButton, null);
87   }
88
89   /**
90    * DOCUMENT ME!
91    * 
92    * @param e
93    *          DOCUMENT ME!
94    */
95   protected void viewInEditorButton_actionPerformed(ActionEvent e)
96   {
97   }
98 }