2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.0b1)
3 * Copyright (C) 2014 The Jalview Authors
5 * This file is part of Jalview.
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 of the License, or (at your option) any later version.
11 * Jalview is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty
13 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 * PURPOSE. See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along with Jalview. If not, see <http://www.gnu.org/licenses/>.
17 * The Jalview Authors are detailed in the 'AUTHORS' file.
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)