Ignore:
Timestamp:
Mar 18, 2013, 1:44:07 AM (12 years ago)
Author:
alloc
Message:

AEI2 0.99u:

  • Saving window sizes and divider locations
Location:
AE/installer2/src/net/oni2/aeinstaller/gui/corepackages
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • AE/installer2/src/net/oni2/aeinstaller/gui/corepackages/CorePackagesDialog.java

    r658 r701  
    1212import javax.swing.KeyStroke;
    1313
     14import net.oni2.aeinstaller.backend.Settings;
    1415import net.oni2.aeinstaller.backend.packages.Package;
    1516import net.oni2.aeinstaller.gui.modtable.ModSelectionListener;
     
    5960                getRootPane().getActionMap().put("close", closeAction);
    6061
    61                 contents.setDividerLocation(550);
     62                contents.setDividerLocation(Settings.getInstance().get("win_core_divloc", 550));
    6263                contents.setResizeWeight(0.4);
    6364
     
    6869                tblTools.addModSelectionListener(this);
    6970
     71                setSize(Settings.getInstance().get("win_core_width", 950), Settings.getInstance().get("win_core_height", 600));
    7072                setLocationRelativeTo(null);
    7173        }
     
    7577                pkgInfo.updateInfo(mod);
    7678        }
     79
     80        @SuppressWarnings("unused")
     81        private void closing() {
     82                Settings.getInstance().put("win_core_divloc", contents.getDividerLocation());
     83                Settings.getInstance().put("win_core_width", getWidth());
     84                Settings.getInstance().put("win_core_height", getHeight());
     85        }
    7786}
  • AE/installer2/src/net/oni2/aeinstaller/gui/corepackages/CorePackagesDialog.yml

    r658 r701  
    77  iconImage: img.ae
    88  modalityType: applicationModal
     9  onWindowClosing: [closing]
    910  content:
    1011    - JSplitPane(name=contents, orientation=horizontalSplit, continuousLayout=true):
Note: See TracChangeset for help on using the changeset viewer.