X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fjbappletgui%2FGPairwiseAlignPanel.java;h=10bd01e2940395dfa65deb5c683acee46ae346eb;hb=7a6d3a8aab4b7ee79a1a45a7793c13fbb01728de;hp=ecf3c8d27862c8092230b8084d0245c463a45631;hpb=ec955aa655d8320258b91eb079bc57f688cd0a07;p=jalview.git diff --git a/src/jalview/jbappletgui/GPairwiseAlignPanel.java b/src/jalview/jbappletgui/GPairwiseAlignPanel.java index ecf3c8d..10bd01e 100755 --- a/src/jalview/jbappletgui/GPairwiseAlignPanel.java +++ b/src/jalview/jbappletgui/GPairwiseAlignPanel.java @@ -1,51 +1,59 @@ +/* +* Jalview - A Sequence Alignment Editor and Viewer +* Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA +*/ package jalview.jbappletgui; import java.awt.*; import java.awt.event.*; -public class GPairwiseAlignPanel extends Panel -{ - protected ScrollPane scrollPane = new ScrollPane(); - protected TextArea textarea = new TextArea(); - protected Button viewInEditorButton = new Button(); - Panel jPanel1 = new Panel(); - BorderLayout borderLayout1 = new BorderLayout(); +public class GPairwiseAlignPanel extends Panel { + protected ScrollPane scrollPane = new ScrollPane(); + protected TextArea textarea = new TextArea(); + protected Button viewInEditorButton = new Button(); + Panel jPanel1 = new Panel(); + BorderLayout borderLayout1 = new BorderLayout(); - public GPairwiseAlignPanel() - { - try - { - jbInit(); + public GPairwiseAlignPanel() { + try { + jbInit(); + } catch (Exception e) { + e.printStackTrace(); + } } - catch(Exception e) - { - e.printStackTrace(); - } - } - private void jbInit() throws Exception - { - this.setLayout(borderLayout1); - textarea.setFont(new java.awt.Font("Monospaced", 0, 12)); - textarea.setText(""); - viewInEditorButton.setFont(new java.awt.Font("Verdana", 0, 12)); - viewInEditorButton.setLabel("View in alignment editor"); - viewInEditorButton.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(ActionEvent e) - { - viewInEditorButton_actionPerformed(e); - } - }); - this.add(scrollPane, BorderLayout.CENTER); - scrollPane.add(textarea); - this.add(jPanel1, BorderLayout.SOUTH); - jPanel1.add(viewInEditorButton, null); - } - - protected void viewInEditorButton_actionPerformed(ActionEvent e) - { - } + private void jbInit() throws Exception { + this.setLayout(borderLayout1); + textarea.setFont(new java.awt.Font("Monospaced", 0, 12)); + textarea.setText(""); + viewInEditorButton.setFont(new java.awt.Font("Verdana", 0, 12)); + viewInEditorButton.setLabel("View in alignment editor"); + viewInEditorButton.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(ActionEvent e) { + viewInEditorButton_actionPerformed(e); + } + }); + this.add(scrollPane, BorderLayout.CENTER); + scrollPane.add(textarea); + this.add(jPanel1, BorderLayout.SOUTH); + jPanel1.add(viewInEditorButton, null); + } + protected void viewInEditorButton_actionPerformed(ActionEvent e) { + } }