Changeset 1126


Ignore:
Timestamp:
Jun 29, 2011, 8:23:46 PM (6 years ago)
Author:
stefan
Message:

center wizard on screen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/jlatexeditor/gui/Wizard.java

    r1093 r1126  
    131131    pack();
    132132
     133    // place window in the center of the screen
     134    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
     135    Dimension windowSize = getSize();
     136    setLocation(screenSize.width / 2 - (windowSize.width / 2), screenSize.height / 2 - (windowSize.height / 2));
     137
    133138    // guessing suitable properties file
    134139    if(!GProperties.hasChanges()) {
Note: See TracChangeset for help on using the changeset viewer.