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/toolmanager
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • AE/installer2/src/net/oni2/aeinstaller/gui/toolmanager/ToolManager.java

    r699 r701  
    7373                getRootPane().getActionMap().put("close", closeAction);
    7474
    75                 contents.setDividerLocation(550);
     75                contents.setDividerLocation(Settings.getInstance().get("win_tools_divloc", 550));
    7676                contents.setResizeWeight(0.4);
    7777
     
    8787                                SwingJavaBuilder.getConfig().getResource("img.uninstall")));
    8888
     89                setSize(Settings.getInstance().get("win_tools_width", 950), Settings.getInstance().get("win_tools_height", 600));
    8990                setLocationRelativeTo(null);
    9091        }
     
    148149                }
    149150        }
     151       
     152        @SuppressWarnings("unused")
     153        private void closing() {
     154                Settings.getInstance().put("win_tools_divloc", contents.getDividerLocation());
     155                Settings.getInstance().put("win_tools_width", getWidth());
     156                Settings.getInstance().put("win_tools_height", getHeight());
     157        }
    150158}
  • AE/installer2/src/net/oni2/aeinstaller/gui/toolmanager/ToolManager.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.