- Timestamp:
- 2006-01-26T01:14:31+01:00 (19 years ago)
- Location:
- src/org/openstreetmap/josm
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/Main.java
r44 r46 4 4 import java.awt.BorderLayout; 5 5 import java.awt.Container; 6 import java.awt.Dimension; 7 import java.awt.Point; 8 import java.awt.Toolkit; 9 import java.util.Arrays; 10 import java.util.Collection; 6 11 7 12 import javax.swing.JFrame; … … 29 34 import org.openstreetmap.josm.gui.ImageProvider; 30 35 import org.openstreetmap.josm.gui.MapFrame; 36 import org.openstreetmap.josm.gui.ShowModifiers; 31 37 32 38 /** … … 74 80 getContentPane().add(panel, BorderLayout.CENTER); 75 81 setSize(1000,740); // some strange default size 76 set ExtendedState(MAXIMIZED_BOTH); // some platform are able to maximize82 setVisible(true); 77 83 78 84 // creating actions … … 143 149 setupExceptionHandler(); 144 150 setupUiDefaults(); 145 151 146 152 // load preferences 147 153 String errMsg = null; … … 170 176 main.setDefaultCloseOperation(EXIT_ON_CLOSE); 171 177 main.setVisible(true); 178 179 Collection<String> arguments = Arrays.asList(args); 180 181 if (arguments.contains("--show-modifiers")) { 182 Point p = main.getLocationOnScreen(); 183 Dimension s = main.getSize(); 184 new ShowModifiers(p.x + s.width - 3, p.y + s.height - 32); 185 main.setVisible(true); 186 } 187 188 if (!arguments.contains("--no-fullscreen")) { 189 if (Toolkit.getDefaultToolkit().isFrameStateSupported(MAXIMIZED_BOTH)) 190 main.setExtendedState(MAXIMIZED_BOTH); // some platform are able to maximize 191 else { 192 Dimension d = Toolkit.getDefaultToolkit().getScreenSize(); 193 main.setSize(d); 194 } 195 } 172 196 } 173 197
Note:
See TracChangeset
for help on using the changeset viewer.