Ignore:
Timestamp:
2005-10-09T04:14:40+02:00 (21 years ago)
Author:
imi
Message:
  • added Layer support
  • added support for raw GPS data
  • fixed tooltips
  • added options for loading gpx files
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/gui/Main.java

    r16 r17  
    55import java.awt.Container;
    66
    7 import javax.swing.ImageIcon;
    87import javax.swing.JFrame;
    98import javax.swing.JMenu;
     
    3635         * Global application preferences
    3736         */
    38         public static Preferences pref = new Preferences();
     37        public final static Preferences pref = new Preferences();
    3938       
    4039        /**
     
    141140                //TODO: Check for changes and ask user
    142141                this.name = name;
     142                if (this.mapFrame != null)
     143                        this.mapFrame.setVisible(false);
    143144                this.mapFrame = mapFrame;
    144145                panel.setVisible(false);
    145146                panel.removeAll();
    146                 panel.add(mapFrame, BorderLayout.CENTER);
    147                 panel.add(mapFrame.toolBarActions, BorderLayout.WEST);
    148                 panel.add(mapFrame.statusLine, BorderLayout.SOUTH);
    149                 panel.setVisible(true);
     147                if (mapFrame != null) {
     148                        mapFrame.fillPanel(panel);
     149                        panel.setVisible(true);
     150                        mapFrame.setVisible(true);
     151                }
    150152        }
    151153        /**
     
    167169         */
    168170        private static void setupUiDefaults() {
    169                 UIManager.put("OptionPane.okIcon", new ImageIcon(Main.class.getResource("/images/ok.png")));
     171                UIManager.put("OptionPane.okIcon", ImageProvider.get("ok"));
    170172                UIManager.put("OptionPane.yesIcon", UIManager.get("OptionPane.okIcon"));
    171                 UIManager.put("OptionPane.cancelIcon", new ImageIcon(Main.class.getResource("/images/cancel.png")));
     173                UIManager.put("OptionPane.cancelIcon", ImageProvider.get("cancel"));
    172174                UIManager.put("OptionPane.noIcon", UIManager.get("OptionPane.cancelIcon"));
    173175        }
Note: See TracChangeset for help on using the changeset viewer.