import java.awt.event.*;\r
\r
\r
-public class GPCAPanel extends Panel {\r
+public class GPCAPanel extends Frame {\r
Panel jPanel2 = new Panel();\r
Label jLabel1 = new Label();\r
Label jLabel2 = new Label();\r
protected Choice zCombobox = new Choice();\r
FlowLayout flowLayout1 = new FlowLayout();\r
BorderLayout borderLayout1 = new BorderLayout();\r
+ MenuBar menuBar1 = new MenuBar();\r
+ Menu menu1 = new Menu();\r
+ Menu menu2 = new Menu();\r
+ protected CheckboxMenuItem labels = new CheckboxMenuItem();\r
+ MenuItem values = new MenuItem();\r
\r
- public GPCAPanel() {\r
+ public GPCAPanel() {\r
try {\r
jbInit();\r
} catch (Exception e) {\r
xCombobox_actionPerformed(null);\r
}\r
});\r
- this.add(jPanel2, BorderLayout.SOUTH);\r
+ this.setMenuBar(menuBar1);\r
+ menu1.setLabel("File");\r
+ menu2.setLabel("View");\r
+ labels.setLabel("Labels");\r
+ labels.addItemListener(new ItemListener()\r
+ {\r
+ public void itemStateChanged(ItemEvent itemEvent)\r
+ {\r
+ labels_itemStateChanged(itemEvent);\r
+ }\r
+ });\r
+ values.setLabel("Output Values...");\r
+ values.addActionListener(new ActionListener()\r
+ {\r
+ public void actionPerformed(ActionEvent actionEvent)\r
+ {\r
+ values_actionPerformed(actionEvent);\r
+ }\r
+ });\r
+ this.add(jPanel2, BorderLayout.SOUTH);\r
jPanel2.add(jLabel1, null);\r
jPanel2.add(xCombobox, null);\r
jPanel2.add(jLabel2, null);\r
jPanel2.add(yCombobox, null);\r
jPanel2.add(jLabel3, null);\r
jPanel2.add(zCombobox, null);\r
- }\r
+ menuBar1.add(menu1);\r
+ menuBar1.add(menu2);\r
+ menu2.add(labels);\r
+ menu1.add(values);\r
+ }\r
\r
protected void xCombobox_actionPerformed(ActionEvent e) {\r
}\r
\r
protected void zCombobox_actionPerformed(ActionEvent e) {\r
}\r
+\r
+ public void values_actionPerformed(ActionEvent actionEvent)\r
+ {\r
+\r
+ }\r
+\r
+ public void labels_itemStateChanged(ItemEvent itemEvent)\r
+ {\r
+\r
+ }\r
}\r