2 * Jalview - A Sequence Alignment Editor and Viewer (Development Version 2.4.1)
3 * Copyright (C) 2009 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
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.
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.
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
19 package jalview.jbgui;
22 import java.awt.event.*;
31 public class GPairwiseAlignPanel extends JPanel
33 protected JScrollPane scrollPane = new JScrollPane();
35 protected JTextArea textarea = new JTextArea();
37 protected JButton viewInEditorButton = new JButton();
39 JPanel jPanel1 = new JPanel();
41 BorderLayout borderLayout1 = new BorderLayout();
44 * Creates a new GPairwiseAlignPanel object.
46 public GPairwiseAlignPanel()
63 private void jbInit() throws Exception
65 this.setLayout(borderLayout1);
66 textarea.setFont(new java.awt.Font("Monospaced", 0, 12));
68 textarea.setWrapStyleWord(false);
69 viewInEditorButton.setFont(new java.awt.Font("Verdana", 0, 12));
70 viewInEditorButton.setText("View in alignment editor");
72 .addActionListener(new java.awt.event.ActionListener()
74 public void actionPerformed(ActionEvent e)
76 viewInEditorButton_actionPerformed(e);
79 this.add(scrollPane, BorderLayout.CENTER);
80 scrollPane.getViewport().add(textarea, null);
81 this.add(jPanel1, BorderLayout.SOUTH);
82 jPanel1.add(viewInEditorButton, null);
91 protected void viewInEditorButton_actionPerformed(ActionEvent e)