Changeset 17 in josm for src/org/openstreetmap/josm/gui/Main.java
- Timestamp:
- 2005-10-09T04:14:40+02:00 (21 years ago)
- File:
-
- 1 edited
-
src/org/openstreetmap/josm/gui/Main.java (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/gui/Main.java
r16 r17 5 5 import java.awt.Container; 6 6 7 import javax.swing.ImageIcon;8 7 import javax.swing.JFrame; 9 8 import javax.swing.JMenu; … … 36 35 * Global application preferences 37 36 */ 38 public static Preferences pref = new Preferences(); 37 public final static Preferences pref = new Preferences(); 39 38 40 39 /** … … 141 140 //TODO: Check for changes and ask user 142 141 this.name = name; 142 if (this.mapFrame != null) 143 this.mapFrame.setVisible(false); 143 144 this.mapFrame = mapFrame; 144 145 panel.setVisible(false); 145 146 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 } 150 152 } 151 153 /** … … 167 169 */ 168 170 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")); 170 172 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")); 172 174 UIManager.put("OptionPane.noIcon", UIManager.get("OptionPane.cancelIcon")); 173 175 }
Note:
See TracChangeset
for help on using the changeset viewer.
