Formatted source
[jalview.git] / src / jalview / jbgui / GPCAPanel.java
1 /*
2 * Jalview - A Sequence Alignment Editor and Viewer
3 * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
4 *
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.
9 *
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.
14 *
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
18 */\r
19 package jalview.jbgui;\r
20 \r
21 import java.awt.*;\r
22 import java.awt.event.*;\r
23 \r
24 import javax.swing.*;\r
25 \r
26 \r
27 public class GPCAPanel extends JPanel {\r
28     JPanel jPanel2 = new JPanel();\r
29     JLabel jLabel1 = new JLabel();\r
30     JLabel jLabel2 = new JLabel();\r
31     JLabel jLabel3 = new JLabel();\r
32     protected JComboBox xCombobox = new JComboBox();\r
33     protected JComboBox yCombobox = new JComboBox();\r
34     protected JComboBox zCombobox = new JComboBox();\r
35     FlowLayout flowLayout1 = new FlowLayout();\r
36     BorderLayout borderLayout1 = new BorderLayout();\r
37 \r
38     public GPCAPanel() {\r
39         try {\r
40             jbInit();\r
41         } catch (Exception e) {\r
42             e.printStackTrace();\r
43         }\r
44 \r
45         for (int i = 1; i < 8; i++) {\r
46             xCombobox.addItem("dim " + i);\r
47             yCombobox.addItem("dim " + i);\r
48             zCombobox.addItem("dim " + i);\r
49         }\r
50     }\r
51 \r
52     private void jbInit() throws Exception {\r
53         this.setLayout(borderLayout1);\r
54         jPanel2.setLayout(flowLayout1);\r
55         jLabel1.setFont(new java.awt.Font("Verdana", 0, 12));\r
56         jLabel1.setText("x=");\r
57         jLabel2.setFont(new java.awt.Font("Verdana", 0, 12));\r
58         jLabel2.setText("y=");\r
59         jLabel3.setFont(new java.awt.Font("Verdana", 0, 12));\r
60         jLabel3.setText("z=");\r
61         jPanel2.setBackground(Color.white);\r
62         jPanel2.setBorder(null);\r
63         zCombobox.setFont(new java.awt.Font("Verdana", 0, 12));\r
64         zCombobox.addActionListener(new java.awt.event.ActionListener() {\r
65                 public void actionPerformed(ActionEvent e) {\r
66                     zCombobox_actionPerformed(e);\r
67                 }\r
68             });\r
69         yCombobox.setFont(new java.awt.Font("Verdana", 0, 12));\r
70         yCombobox.addActionListener(new java.awt.event.ActionListener() {\r
71                 public void actionPerformed(ActionEvent e) {\r
72                     yCombobox_actionPerformed(e);\r
73                 }\r
74             });\r
75         xCombobox.setFont(new java.awt.Font("Verdana", 0, 12));\r
76         xCombobox.addActionListener(new java.awt.event.ActionListener() {\r
77                 public void actionPerformed(ActionEvent e) {\r
78                     xCombobox_actionPerformed(e);\r
79                 }\r
80             });\r
81         this.add(jPanel2, BorderLayout.SOUTH);\r
82         jPanel2.add(jLabel1, null);\r
83         jPanel2.add(xCombobox, null);\r
84         jPanel2.add(jLabel2, null);\r
85         jPanel2.add(yCombobox, null);\r
86         jPanel2.add(jLabel3, null);\r
87         jPanel2.add(zCombobox, null);\r
88     }\r
89 \r
90     protected void xCombobox_actionPerformed(ActionEvent e) {\r
91     }\r
92 \r
93     protected void yCombobox_actionPerformed(ActionEvent e) {\r
94     }\r
95 \r
96     protected void zCombobox_actionPerformed(ActionEvent e) {\r
97     }\r
98 }\r