Ignore:
Timestamp:
Mar 28, 2015, 7:11:52 PM (10 years ago)
Author:
alloc
Message:

AEI 2.20: Center download window on parent window

File:
1 edited

Legend:

Unmodified
Added
Removed
  • java/installer2/src/net/oni2/aeinstaller/gui/downloadwindow/Downloader.java

    r924 r1018  
    11package net.oni2.aeinstaller.gui.downloadwindow;
    22
     3import java.awt.Component;
    34import java.util.ResourceBundle;
    45import java.util.TreeSet;
     
    5354         * @param isCoreDownload
    5455         *            Downloading core packages - can not be aborted
     56         * @param parent
     57         *            Reference to parent window for centering
    5558         */
    5659        public Downloader(TreeSet<Package> mods, TreeSet<Package> dependencies,
    57                         boolean isCoreDownload) {
     60                        boolean isCoreDownload, Component parent) {
    5861                super();
    5962
     
    6568                setResizable(false);
    6669                setSize(600, (int) getSize().getHeight());
     70                setLocationRelativeTo(parent);
    6771
    6872                if (dependencies != null)
Note: See TracChangeset for help on using the changeset viewer.