2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.1)
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;
21 import jalview.util.MessageManager;
24 import java.awt.event.*;
33 public class GPairwiseAlignPanel extends JPanel
35 protected JScrollPane scrollPane = new JScrollPane();
37 protected JTextArea textarea = new JTextArea();
39 protected JButton viewInEditorButton = new JButton();
41 JPanel jPanel1 = new JPanel();
43 BorderLayout borderLayout1 = new BorderLayout();
46 * Creates a new GPairwiseAlignPanel object.
48 public GPairwiseAlignPanel()
65 private void jbInit() throws Exception
67 this.setLayout(borderLayout1);
68 textarea.setFont(new java.awt.Font("Monospaced", 0, 12));
70 textarea.setWrapStyleWord(false);
71 viewInEditorButton.setFont(new java.awt.Font("Verdana", 0, 12));
72 viewInEditorButton.setText(MessageManager.getString("label.view_alignment_editor"));
74 .addActionListener(new java.awt.event.ActionListener()
76 public void actionPerformed(ActionEvent e)
78 viewInEditorButton_actionPerformed(e);
81 this.add(scrollPane, BorderLayout.CENTER);
82 scrollPane.getViewport().add(textarea, null);
83 this.add(jPanel1, BorderLayout.SOUTH);
84 jPanel1.add(viewInEditorButton, null);
93 protected void viewInEditorButton_actionPerformed(ActionEvent e)