summaryrefslogtreecommitdiff
path: root/micropeak
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-07-02 17:54:38 -0700
committerKeith Packard <keithp@keithp.com>2013-07-02 17:54:38 -0700
commit324ceea43c115f4bed3a5276e57559c6c76b07c1 (patch)
treef96d5716f459f2e6e476aa235898e534c8ef9ec2 /micropeak
parent156e60954fae15bc090984f79cd5594f910ca913 (diff)
micropeak: Add Download button to menu bar
It's the most common activity, after all Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'micropeak')
-rw-r--r--micropeak/MicroPeak.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/micropeak/MicroPeak.java b/micropeak/MicroPeak.java
index 79223176..cb1c68cb 100644
--- a/micropeak/MicroPeak.java
+++ b/micropeak/MicroPeak.java
@@ -231,6 +231,10 @@ public class MicroPeak extends MicroFrame implements ActionListener, ItemListene
fileMenu.add(exitAction);
exitAction.addActionListener(this);
+ JButton downloadButton = new JButton ("Download");
+ downloadButton.addActionListener(this);
+ menuBar.add(downloadButton);
+
setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
addWindowListener(new WindowAdapter() {
@Override