diff options
author | Keith Packard <keithp@keithp.com> | 2010-09-04 01:13:42 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2010-09-04 01:13:42 -0700 |
commit | e844e8a0695e27af6f8e3e37a5e3bcc865b862e3 (patch) | |
tree | 87def84cdbfaadc2f56c6e7d0773d013ff969f0c /ao-tools/altosui/AltosUI.java | |
parent | e9ea28504c646fc25791aab09b9e5faf73e0ac0c (diff) |
altosui: Add icons to application and Windows menus.
Use the altus-metrum icon for an application icon and a windows start
menu/desktop icon.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/altosui/AltosUI.java')
-rw-r--r-- | ao-tools/altosui/AltosUI.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ao-tools/altosui/AltosUI.java b/ao-tools/altosui/AltosUI.java index 7e3fb7f9..eb376be4 100644 --- a/ao-tools/altosui/AltosUI.java +++ b/ao-tools/altosui/AltosUI.java @@ -75,6 +75,10 @@ public class AltosUI extends JFrame { String[] statusNames = { "Height (m)", "State", "RSSI (dBm)", "Speed (m/s)" }; Object[][] statusData = { { "0", "pad", "-50", "0" } }; + java.net.URL imgURL = AltosUI.class.getResource("/images/altus-metrum-16x16.jpg"); + if (imgURL != null) + setIconImage(new ImageIcon(imgURL).getImage()); + AltosPreferences.init(this); vbox = Box.createVerticalBox(); |