X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fjbappletgui%2FGPCAPanel.java;fp=src%2Fjalview%2Fjbappletgui%2FGPCAPanel.java;h=d67d1c3f56894fcb27f5dc842c54d32f31404f35;hb=b59ef548eac5f8c33b5b91a8925a389d0de3b9b9;hp=f33521cf67a4f6a514ba6cc4a0444ca8e7f94f09;hpb=ee53965807b83bf93a21cbc341cee9a9e005b2cb;p=jalview.git diff --git a/src/jalview/jbappletgui/GPCAPanel.java b/src/jalview/jbappletgui/GPCAPanel.java index f33521c..d67d1c3 100755 --- a/src/jalview/jbappletgui/GPCAPanel.java +++ b/src/jalview/jbappletgui/GPCAPanel.java @@ -22,7 +22,7 @@ import java.awt.*; import java.awt.event.*; -public class GPCAPanel extends Panel { +public class GPCAPanel extends Frame { Panel jPanel2 = new Panel(); Label jLabel1 = new Label(); Label jLabel2 = new Label(); @@ -32,8 +32,13 @@ public class GPCAPanel extends Panel { protected Choice zCombobox = new Choice(); FlowLayout flowLayout1 = new FlowLayout(); BorderLayout borderLayout1 = new BorderLayout(); + MenuBar menuBar1 = new MenuBar(); + Menu menu1 = new Menu(); + Menu menu2 = new Menu(); + protected CheckboxMenuItem labels = new CheckboxMenuItem(); + MenuItem values = new MenuItem(); - public GPCAPanel() { + public GPCAPanel() { try { jbInit(); } catch (Exception e) { @@ -75,14 +80,37 @@ public class GPCAPanel extends Panel { xCombobox_actionPerformed(null); } }); - this.add(jPanel2, BorderLayout.SOUTH); + this.setMenuBar(menuBar1); + menu1.setLabel("File"); + menu2.setLabel("View"); + labels.setLabel("Labels"); + labels.addItemListener(new ItemListener() + { + public void itemStateChanged(ItemEvent itemEvent) + { + labels_itemStateChanged(itemEvent); + } + }); + values.setLabel("Output Values..."); + values.addActionListener(new ActionListener() + { + public void actionPerformed(ActionEvent actionEvent) + { + values_actionPerformed(actionEvent); + } + }); + this.add(jPanel2, BorderLayout.SOUTH); jPanel2.add(jLabel1, null); jPanel2.add(xCombobox, null); jPanel2.add(jLabel2, null); jPanel2.add(yCombobox, null); jPanel2.add(jLabel3, null); jPanel2.add(zCombobox, null); - } + menuBar1.add(menu1); + menuBar1.add(menu2); + menu2.add(labels); + menu1.add(values); + } protected void xCombobox_actionPerformed(ActionEvent e) { } @@ -92,4 +120,14 @@ public class GPCAPanel extends Panel { protected void zCombobox_actionPerformed(ActionEvent e) { } + + public void values_actionPerformed(ActionEvent actionEvent) + { + + } + + public void labels_itemStateChanged(ItemEvent itemEvent) + { + + } }