Changeset 1770


Ignore:
Timestamp:
11/08/06 22:26:07 (13 years ago)
Author:
curtis
Message:

Center window on screen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/loci/apps/slim/SlimPlotter.java

    r1767 r1770  
    646646    // show window on screen 
    647647    masterWindow.pack(); 
     648    Dimension size = masterWindow.getSize(); 
     649    Dimension screen = Toolkit.getDefaultToolkit().getScreenSize(); 
     650    masterWindow.setLocation((screen.width - size.width) / 2, 
     651      (screen.height - size.height) / 2); 
    648652    masterWindow.setVisible(true); 
    649653    progress.setProgress(++p); 
Note: See TracChangeset for help on using the changeset viewer.