2 * Jalview - A Sequence Alignment Editor and Viewer
3 * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License
7 * as published by the Free Software Foundation; either version 2
8 * of the License, or (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
20 package jalview.jbgui;
24 import java.awt.event.*;
26 public class GPCAPanel extends JPanel
28 JPanel jPanel2 = new JPanel();
29 JLabel jLabel1 = new JLabel();
30 JLabel jLabel2 = new JLabel();
31 JLabel jLabel3 = new JLabel();
32 protected JComboBox xCombobox = new JComboBox();
33 protected JComboBox yCombobox = new JComboBox();
34 protected JComboBox zCombobox = new JComboBox();
35 FlowLayout flowLayout1 = new FlowLayout();
36 BorderLayout borderLayout1 = new BorderLayout();
49 for(int i=1; i<8; i++)
51 xCombobox.addItem("dim "+i);
52 yCombobox.addItem("dim "+i);
53 zCombobox.addItem("dim "+i);
56 private void jbInit() throws Exception
58 this.setLayout(borderLayout1);
59 jPanel2.setLayout(flowLayout1);
60 jLabel1.setFont(new java.awt.Font("Verdana", 0, 12));
61 jLabel1.setText("x=");
62 jLabel2.setFont(new java.awt.Font("Verdana", 0, 12));
63 jLabel2.setText("y=");
64 jLabel3.setFont(new java.awt.Font("Verdana", 0, 12));
65 jLabel3.setText("z=");
66 jPanel2.setBackground(Color.white);
67 jPanel2.setBorder(null);
68 zCombobox.setFont(new java.awt.Font("Verdana", 0, 12));
69 zCombobox.addActionListener(new java.awt.event.ActionListener()
71 public void actionPerformed(ActionEvent e)
73 zCombobox_actionPerformed(e);
76 yCombobox.setFont(new java.awt.Font("Verdana", 0, 12));
77 yCombobox.addActionListener(new java.awt.event.ActionListener()
79 public void actionPerformed(ActionEvent e)
81 yCombobox_actionPerformed(e);
84 xCombobox.setFont(new java.awt.Font("Verdana", 0, 12));
85 xCombobox.addActionListener(new java.awt.event.ActionListener()
87 public void actionPerformed(ActionEvent e)
89 xCombobox_actionPerformed(e);
92 this.add(jPanel2, BorderLayout.SOUTH);
93 jPanel2.add(jLabel1, null);
94 jPanel2.add(xCombobox, null);
95 jPanel2.add(jLabel2, null);
96 jPanel2.add(yCombobox, null);
97 jPanel2.add(jLabel3, null);
98 jPanel2.add(zCombobox, null);
101 protected void xCombobox_actionPerformed(ActionEvent e)
106 protected void yCombobox_actionPerformed(ActionEvent e)
111 protected void zCombobox_actionPerformed(ActionEvent e)