Changeset 3181 in josm


Ignore:
Timestamp:
2010-04-14T17:14:26+02:00 (15 years ago)
Author:
bastiK
Message:

see #4877 - Splashscreen has wrong position on X11 dualhead mode

File:
1 edited

Legend:

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

    r3083 r3181  
    9292
    9393        // Center the splash screen
    94         Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    95         Dimension labelSize = contentPane.getPreferredSize();
    96         setLocation(screenSize.width / 2 - (labelSize.width / 2),
    97                 screenSize.height / 2 - (labelSize.height / 2));
     94        setLocationRelativeTo(null);
    9895
    9996        // Add ability to hide splash screen by clicking it
Note: See TracChangeset for help on using the changeset viewer.