Ticket #1638: 0001-Use-logo.png-as-JOSM-application-icon.patch

File 0001-Use-logo.png-as-JOSM-application-icon.patch, 1.3 KB (added by anonymous, 16 years ago)
  • src/org/openstreetmap/josm/gui/MainApplication.java

    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;  
    2323import org.openstreetmap.josm.Main;
    2424import org.openstreetmap.josm.plugins.PluginDownloader;
    2525import org.openstreetmap.josm.tools.BugReportExceptionHandler;
     26import org.openstreetmap.josm.tools.ImageProvider;
    2627/**
    2728 * Main window class application.
    2829 *
    public class MainApplication extends Main {  
    4344                mainFrame.setContentPane(contentPane);
    4445                mainFrame.setJMenuBar(menu);
    4546                mainFrame.setBounds(bounds);
     47                mainFrame.setIconImage(ImageProvider.get("logo.png").getImage());
    4648                mainFrame.addWindowListener(new WindowAdapter(){
    4749                        @Override public void windowClosing(final WindowEvent arg0) {
    4850                                if (Main.breakBecauseUnsavedChanges())