GPL license added
[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 */
19
20 package jalview.jbgui;
21
22 import javax.swing.*;
23 import java.awt.*;
24 import java.awt.event.*;
25
26
27 public class GPairwiseAlignPanel extends JPanel
28 {
29   protected JScrollPane scrollPane = new JScrollPane();
30   protected JTextArea textarea = new JTextArea();
31   protected JButton viewInEditorButton = new JButton();
32   JPanel jPanel1 = new JPanel();
33   BorderLayout borderLayout1 = new BorderLayout();
34
35   public GPairwiseAlignPanel()
36   {
37     try
38     {
39       jbInit();
40     }
41     catch(Exception e)
42     {
43       e.printStackTrace();
44     }
45   }
46   private void jbInit() throws Exception
47   {
48     this.setLayout(borderLayout1);
49     textarea.setFont(new java.awt.Font("Monospaced", 0, 12));
50     textarea.setText("");
51     textarea.setWrapStyleWord(false);
52     viewInEditorButton.setFont(new java.awt.Font("Verdana", 0, 12));
53     viewInEditorButton.setText("View in alignment editor");
54     viewInEditorButton.addActionListener(new java.awt.event.ActionListener()
55     {
56       public void actionPerformed(ActionEvent e)
57       {
58         viewInEditorButton_actionPerformed(e);
59       }
60     });
61     this.add(scrollPane, BorderLayout.CENTER);
62     scrollPane.getViewport().add(textarea, null);
63     this.add(jPanel1, BorderLayout.SOUTH);
64     jPanel1.add(viewInEditorButton, null);
65   }
66
67   protected void viewInEditorButton_actionPerformed(ActionEvent e)
68   {
69
70   }
71
72 }