From 1d0db382d1aa9b591f10dd9b531eb07279261337 Mon Sep 17 00:00:00 2001
From: Michel Marti <mcdmx@users.sf.net>
Date: Tue, 7 Oct 2008 10:58:39 +0200
Subject: [PATCH] Use "logo.png" as JOSM application icon.
Signed-off-by: Michel Marti <mcdmx@users.sf.net>
---
.../openstreetmap/josm/gui/MainApplication.java | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/org/openstreetmap/josm/gui/MainApplication.java b/src/org/openstreetmap/josm/gui/MainApplication.java
index 050d079..4da7a87 100644
a
|
b
|
import javax.swing.JOptionPane;
|
23 | 23 | import org.openstreetmap.josm.Main; |
24 | 24 | import org.openstreetmap.josm.plugins.PluginDownloader; |
25 | 25 | import org.openstreetmap.josm.tools.BugReportExceptionHandler; |
| 26 | import org.openstreetmap.josm.tools.ImageProvider; |
26 | 27 | /** |
27 | 28 | * Main window class application. |
28 | 29 | * |
… |
… |
public class MainApplication extends Main {
|
43 | 44 | mainFrame.setContentPane(contentPane); |
44 | 45 | mainFrame.setJMenuBar(menu); |
45 | 46 | mainFrame.setBounds(bounds); |
| 47 | mainFrame.setIconImage(ImageProvider.get("logo.png").getImage()); |
46 | 48 | mainFrame.addWindowListener(new WindowAdapter(){ |
47 | 49 | @Override public void windowClosing(final WindowEvent arg0) { |
48 | 50 | if (Main.breakBecauseUnsavedChanges()) |