From: Keith Packard Date: Wed, 3 Jul 2013 00:54:38 +0000 (-0700) Subject: micropeak: Add Download button to menu bar X-Git-Tag: 1.2.9.4~145 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=324ceea43c115f4bed3a5276e57559c6c76b07c1 micropeak: Add Download button to menu bar It's the most common activity, after all Signed-off-by: Keith Packard --- 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