2 * Jalview - A Sequence Alignment Editor and Viewer
3 * Copyright (C) 2005 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
20 package jalview.jbgui;
24 import java.awt.event.*;
27 public class GPairwiseAlignPanel extends JPanel
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();
35 public GPairwiseAlignPanel()
46 private void jbInit() throws Exception
48 this.setLayout(borderLayout1);
49 textarea.setFont(new java.awt.Font("Monospaced", 0, 12));
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()
56 public void actionPerformed(ActionEvent e)
58 viewInEditorButton_actionPerformed(e);
61 this.add(scrollPane, BorderLayout.CENTER);
62 scrollPane.getViewport().add(textarea, null);
63 this.add(jPanel1, BorderLayout.SOUTH);
64 jPanel1.add(viewInEditorButton, null);
67 protected void viewInEditorButton_actionPerformed(ActionEvent e)