micropeak: Add Download button to menu bar
authorKeith Packard <keithp@keithp.com>
Wed, 3 Jul 2013 00:54:38 +0000 (17:54 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 3 Jul 2013 00:54:38 +0000 (17:54 -0700)
It's the most common activity, after all

Signed-off-by: Keith Packard <keithp@keithp.com>
micropeak/MicroPeak.java

index 792231768808a04011246d2561c29b637bffb8ef..cb1c68cbba2eb7afbc55fe3580a0ff5bce1f5d2f 100644 (file)
@@ -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