Formatting changes
[jalview.git] / src / jalview / jbgui / GPCAPanel.java
1 /*\r
2  * Jalview - A Sequence Alignment Editor and Viewer\r
3  * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
4  *\r
5  * This program is free software; you can redistribute it and/or\r
6  * modify it under the terms of the GNU General Public License\r
7  * as published by the Free Software Foundation; either version 2\r
8  * of the License, or (at your option) any later version.\r
9  *\r
10  * This program is distributed in the hope that it will be useful,\r
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
13  * GNU General Public License for more details.\r
14  *\r
15  * You should have received a copy of the GNU General Public License\r
16  * along with this program; if not, write to the Free Software\r
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA\r
18  */\r
19 package jalview.jbgui;\r
20 \r
21 import java.awt.*;\r
22 import java.awt.event.*;\r
23 import javax.swing.*;\r
24 \r
25 public class GPCAPanel\r
26     extends JPanel\r
27 {\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   {\r
40     try\r
41     {\r
42       jbInit();\r
43     }\r
44     catch (Exception e)\r
45     {\r
46       e.printStackTrace();\r
47     }\r
48 \r
49     for (int i = 1; i < 8; i++)\r
50     {\r
51       xCombobox.addItem("dim " + i);\r
52       yCombobox.addItem("dim " + i);\r
53       zCombobox.addItem("dim " + i);\r
54     }\r
55   }\r
56 \r
57   private void jbInit()\r
58       throws Exception\r
59   {\r
60     this.setLayout(borderLayout1);\r
61     jPanel2.setLayout(flowLayout1);\r
62     jLabel1.setFont(new java.awt.Font("Verdana", 0, 12));\r
63     jLabel1.setText("x=");\r
64     jLabel2.setFont(new java.awt.Font("Verdana", 0, 12));\r
65     jLabel2.setText("y=");\r
66     jLabel3.setFont(new java.awt.Font("Verdana", 0, 12));\r
67     jLabel3.setText("z=");\r
68     jPanel2.setBackground(Color.white);\r
69     jPanel2.setBorder(null);\r
70     zCombobox.setFont(new java.awt.Font("Verdana", 0, 12));\r
71     zCombobox.addActionListener(new java.awt.event.ActionListener()\r
72     {\r
73       public void actionPerformed(ActionEvent e)\r
74       {\r
75         zCombobox_actionPerformed(e);\r
76       }\r
77     });\r
78     yCombobox.setFont(new java.awt.Font("Verdana", 0, 12));\r
79     yCombobox.addActionListener(new java.awt.event.ActionListener()\r
80     {\r
81       public void actionPerformed(ActionEvent e)\r
82       {\r
83         yCombobox_actionPerformed(e);\r
84       }\r
85     });\r
86     xCombobox.setFont(new java.awt.Font("Verdana", 0, 12));\r
87     xCombobox.addActionListener(new java.awt.event.ActionListener()\r
88     {\r
89       public void actionPerformed(ActionEvent e)\r
90       {\r
91         xCombobox_actionPerformed(e);\r
92       }\r
93     });\r
94     this.add(jPanel2, BorderLayout.SOUTH);\r
95     jPanel2.add(jLabel1, null);\r
96     jPanel2.add(xCombobox, null);\r
97     jPanel2.add(jLabel2, null);\r
98     jPanel2.add(yCombobox, null);\r
99     jPanel2.add(jLabel3, null);\r
100     jPanel2.add(zCombobox, null);\r
101   }\r
102 \r
103   protected void xCombobox_actionPerformed(ActionEvent e)\r
104   {\r
105   }\r
106 \r
107   protected void yCombobox_actionPerformed(ActionEvent e)\r
108   {\r
109   }\r
110 \r
111   protected void zCombobox_actionPerformed(ActionEvent e)\r
112   {\r
113   }\r
114 }\r