2 * 2004 Jalview Reengineered
13 import java.awt.event.*;
16 public class GCutAndPasteTransfer extends JPanel
18 protected JTextArea textarea = new JTextArea();
19 protected JComboBox formatChoice = new JComboBox();
20 protected JLabel formatLabel = new JLabel();
21 protected JScrollPane scrollPane = new JScrollPane();
22 public GCutAndPasteTransfer()
34 private void jbInit() throws Exception
36 textarea.setFont(new java.awt.Font("Verdana", 0, 12));
37 textarea.setBorder(BorderFactory.createLineBorder(Color.black));
38 textarea.setText("Paste your alignment file here");
39 textarea.addMouseListener(new java.awt.event.MouseAdapter()
41 public void mousePressed(MouseEvent e)
43 textarea_mousePressed(e);
46 formatChoice.setFont(new java.awt.Font("Verdana", 0, 12));
47 formatChoice.setBounds(new Rectangle(194, 269, 159, 22));
48 formatChoice.addActionListener(new java.awt.event.ActionListener()
50 public void actionPerformed(ActionEvent e)
52 formatChoice_actionPerformed(e);
55 formatLabel.setFont(new java.awt.Font("Verdana", 0, 12));
56 formatLabel.setHorizontalAlignment(SwingConstants.TRAILING);
57 formatLabel.setText("Alignment Format");
58 formatLabel.setBounds(new Rectangle(76, 272, 110, 16));
60 this.setPreferredSize(new Dimension(400, 300));
61 scrollPane.setBounds(new Rectangle(5, 5, 389, 256));
62 this.add(formatLabel, null);
63 this.add(formatChoice, null);
64 this.add(scrollPane, null);
65 scrollPane.getViewport().add(textarea, null);
71 protected void formatChoice_actionPerformed(ActionEvent e)
76 void textarea_mousePressed(MouseEvent e)
78 if(textarea.getText().equals("Paste your alignment file here"))