77c0d79b2781813755fd0cea3344025deed7eb5c
[jalview.git] / src / jalview / jbgui / GPairwiseAlignPanel.java
1 package jalview.jbgui;
2
3 import javax.swing.*;
4 import java.awt.*;
5 import java.awt.event.*;
6
7
8 public class GPairwiseAlignPanel extends JPanel
9 {
10   protected JScrollPane scrollPane = new JScrollPane();
11   protected JTextArea textarea = new JTextArea();
12   protected JButton viewInEditorButton = new JButton();
13   JPanel jPanel1 = new JPanel();
14   BorderLayout borderLayout1 = new BorderLayout();
15
16   public GPairwiseAlignPanel()
17   {
18     try
19     {
20       jbInit();
21     }
22     catch(Exception e)
23     {
24       e.printStackTrace();
25     }
26   }
27   private void jbInit() throws Exception
28   {
29     this.setLayout(borderLayout1);
30     textarea.setFont(new java.awt.Font("Monospaced", 0, 12));
31     textarea.setText("");
32     textarea.setWrapStyleWord(false);
33     viewInEditorButton.setFont(new java.awt.Font("Verdana", 0, 12));
34     viewInEditorButton.setText("View in alignment editor");
35     viewInEditorButton.addActionListener(new java.awt.event.ActionListener()
36     {
37       public void actionPerformed(ActionEvent e)
38       {
39         viewInEditorButton_actionPerformed(e);
40       }
41     });
42     this.add(scrollPane, BorderLayout.CENTER);
43     scrollPane.getViewport().add(textarea, null);
44     this.add(jPanel1, BorderLayout.SOUTH);
45     jPanel1.add(viewInEditorButton, null);
46   }
47
48   protected void viewInEditorButton_actionPerformed(ActionEvent e)
49   {
50
51   }
52
53 }