5 import java.awt.event.*;
7 public class GPCAPanel extends JPanel
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();
30 for(int i=1; i<8; i++)
32 xCombobox.addItem("dim "+i);
33 yCombobox.addItem("dim "+i);
34 zCombobox.addItem("dim "+i);
37 private void jbInit() throws Exception
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()
52 public void actionPerformed(ActionEvent e)
54 zCombobox_actionPerformed(e);
57 yCombobox.setFont(new java.awt.Font("Verdana", 0, 12));
58 yCombobox.addActionListener(new java.awt.event.ActionListener()
60 public void actionPerformed(ActionEvent e)
62 yCombobox_actionPerformed(e);
65 xCombobox.setFont(new java.awt.Font("Verdana", 0, 12));
66 xCombobox.addActionListener(new java.awt.event.ActionListener()
68 public void actionPerformed(ActionEvent e)
70 xCombobox_actionPerformed(e);
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);
82 protected void xCombobox_actionPerformed(ActionEvent e)
87 protected void yCombobox_actionPerformed(ActionEvent e)
92 protected void zCombobox_actionPerformed(ActionEvent e)