X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fjbgui%2FGPairwiseAlignPanel.java;h=b4e63217d9bbabb47f75126cf97ee8c1f7ec7ed8;hb=2253f31565d4e96edffce2fac596e2ef0578d596;hp=5e56bd925d08d46eacede1f860e4a6ead12257b8;hpb=d1f6cf53b29322601c621da9a6b3cb09dd28235e;p=jalview.git diff --git a/src/jalview/jbgui/GPairwiseAlignPanel.java b/src/jalview/jbgui/GPairwiseAlignPanel.java index 5e56bd9..b4e6321 100755 --- a/src/jalview/jbgui/GPairwiseAlignPanel.java +++ b/src/jalview/jbgui/GPairwiseAlignPanel.java @@ -24,17 +24,20 @@ import javax.swing.*; /** * DOCUMENT ME! - * + * * @author $author$ * @version $Revision$ */ -public class GPairwiseAlignPanel - extends JPanel +public class GPairwiseAlignPanel extends JPanel { protected JScrollPane scrollPane = new JScrollPane(); + protected JTextArea textarea = new JTextArea(); + protected JButton viewInEditorButton = new JButton(); + JPanel jPanel1 = new JPanel(); + BorderLayout borderLayout1 = new BorderLayout(); /** @@ -45,8 +48,7 @@ public class GPairwiseAlignPanel try { jbInit(); - } - catch (Exception e) + } catch (Exception e) { e.printStackTrace(); } @@ -54,11 +56,11 @@ public class GPairwiseAlignPanel /** * DOCUMENT ME! - * - * @throws Exception DOCUMENT ME! + * + * @throws Exception + * DOCUMENT ME! */ - private void jbInit() - throws Exception + private void jbInit() throws Exception { this.setLayout(borderLayout1); textarea.setFont(new java.awt.Font("Monospaced", 0, 12)); @@ -66,13 +68,14 @@ public class GPairwiseAlignPanel textarea.setWrapStyleWord(false); viewInEditorButton.setFont(new java.awt.Font("Verdana", 0, 12)); viewInEditorButton.setText("View in alignment editor"); - viewInEditorButton.addActionListener(new java.awt.event.ActionListener() - { - public void actionPerformed(ActionEvent e) - { - viewInEditorButton_actionPerformed(e); - } - }); + viewInEditorButton + .addActionListener(new java.awt.event.ActionListener() + { + public void actionPerformed(ActionEvent e) + { + viewInEditorButton_actionPerformed(e); + } + }); this.add(scrollPane, BorderLayout.CENTER); scrollPane.getViewport().add(textarea, null); this.add(jPanel1, BorderLayout.SOUTH); @@ -81,8 +84,9 @@ public class GPairwiseAlignPanel /** * DOCUMENT ME! - * - * @param e DOCUMENT ME! + * + * @param e + * DOCUMENT ME! */ protected void viewInEditorButton_actionPerformed(ActionEvent e) {