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