2 * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
3 * Copyright (C) $$Year-Rel$$ 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;
25 import java.awt.BorderLayout;
26 import java.awt.event.ActionEvent;
28 import javax.swing.JButton;
29 import javax.swing.JPanel;
30 import javax.swing.JScrollPane;
31 import javax.swing.JTextArea;
39 public class GPairwiseAlignPanel extends JPanel
41 protected JScrollPane scrollPane = new JScrollPane();
43 protected JTextArea textarea = new JTextArea();
45 protected JButton viewInEditorButton = new JButton();
47 JPanel jPanel1 = new JPanel();
49 BorderLayout borderLayout1 = new BorderLayout();
52 * Creates a new GPairwiseAlignPanel object.
54 public GPairwiseAlignPanel()
71 private void jbInit() throws Exception
73 this.setLayout(borderLayout1);
74 textarea.setFont(new java.awt.Font("Monospaced", 0, 12));
76 textarea.setWrapStyleWord(false);
77 viewInEditorButton.setFont(new java.awt.Font("Verdana", 0, 12));
78 viewInEditorButton.setText(MessageManager
79 .getString("label.view_alignment_editor"));
81 .addActionListener(new java.awt.event.ActionListener()
83 public void actionPerformed(ActionEvent e)
85 viewInEditorButton_actionPerformed(e);
88 this.add(scrollPane, BorderLayout.CENTER);
89 scrollPane.getViewport().add(textarea, null);
90 this.add(jPanel1, BorderLayout.SOUTH);
91 jPanel1.add(viewInEditorButton, null);
100 protected void viewInEditorButton_actionPerformed(ActionEvent e)