2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
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
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
21 package jalview.jbgui;
23 import jalview.util.MessageManager;
26 import java.awt.event.*;
35 public class GPairwiseAlignPanel extends JPanel
37 protected JScrollPane scrollPane = new JScrollPane();
39 protected JTextArea textarea = new JTextArea();
41 protected JButton viewInEditorButton = new JButton();
43 JPanel jPanel1 = new JPanel();
45 BorderLayout borderLayout1 = new BorderLayout();
48 * Creates a new GPairwiseAlignPanel object.
50 public GPairwiseAlignPanel()
67 private void jbInit() throws Exception
69 this.setLayout(borderLayout1);
70 textarea.setFont(new java.awt.Font("Monospaced", 0, 12));
72 textarea.setWrapStyleWord(false);
73 viewInEditorButton.setFont(new java.awt.Font("Verdana", 0, 12));
74 viewInEditorButton.setText(MessageManager
75 .getString("label.view_alignment_editor"));
77 .addActionListener(new java.awt.event.ActionListener()
79 public void actionPerformed(ActionEvent e)
81 viewInEditorButton_actionPerformed(e);
84 this.add(scrollPane, BorderLayout.CENTER);
85 scrollPane.getViewport().add(textarea, null);
86 this.add(jPanel1, BorderLayout.SOUTH);
87 jPanel1.add(viewInEditorButton, null);
96 protected void viewInEditorButton_actionPerformed(ActionEvent e)