From: amwaterhouse Date: Wed, 28 Sep 2005 14:54:23 +0000 (+0000) Subject: More features for PCA X-Git-Tag: Release_2_06~8 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b59ef548eac5f8c33b5b91a8925a389d0de3b9b9;p=jalview.git More features for PCA --- 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) + { + + } }