Formatted source
[jalview.git] / src / jalview / jbgui / GPairwiseAlignPanel.java
1 /*
2 * Jalview - A Sequence Alignment Editor and Viewer
3 * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA
18 */\r
19 package jalview.jbgui;\r
20 \r
21 import java.awt.*;\r
22 import java.awt.event.*;\r
23 \r
24 import javax.swing.*;\r
25 \r
26 \r
27 public class GPairwiseAlignPanel extends JPanel {\r
28     protected JScrollPane scrollPane = new JScrollPane();\r
29     protected JTextArea textarea = new JTextArea();\r
30     protected JButton viewInEditorButton = new JButton();\r
31     JPanel jPanel1 = new JPanel();\r
32     BorderLayout borderLayout1 = new BorderLayout();\r
33 \r
34     public GPairwiseAlignPanel() {\r
35         try {\r
36             jbInit();\r
37         } catch (Exception e) {\r
38             e.printStackTrace();\r
39         }\r
40     }\r
41 \r
42     private void jbInit() throws Exception {\r
43         this.setLayout(borderLayout1);\r
44         textarea.setFont(new java.awt.Font("Monospaced", 0, 12));\r
45         textarea.setText("");\r
46         textarea.setWrapStyleWord(false);\r
47         viewInEditorButton.setFont(new java.awt.Font("Verdana", 0, 12));\r
48         viewInEditorButton.setText("View in alignment editor");\r
49         viewInEditorButton.addActionListener(new java.awt.event.ActionListener() {\r
50                 public void actionPerformed(ActionEvent e) {\r
51                     viewInEditorButton_actionPerformed(e);\r
52                 }\r
53             });\r
54         this.add(scrollPane, BorderLayout.CENTER);\r
55         scrollPane.getViewport().add(textarea, null);\r
56         this.add(jPanel1, BorderLayout.SOUTH);\r
57         jPanel1.add(viewInEditorButton, null);\r
58     }\r
59 \r
60     protected void viewInEditorButton_actionPerformed(ActionEvent e) {\r
61     }\r
62 }\r