-
1 Jul 2009 11:50 PM #11
How can I stop a border layout remembering state between sessions?
Maybe it's becuase I've put id's on my components, but every time I restart my app, all my border layouts are the in the same "state" as in the last session - even if I restart firefox / hosted mode!
Any thoughts?
-
5 Jul 2009 10:51 PM #12
BorderLayout.class
Code:/** * True to enabled state (defaults to true). When true, expand / collapse and * size state is persisted across user sessions. * * @param enableState true to enable state */ public void setEnableState(boolean enableState) { this.enableState = enableState; }
-
16 Jul 2009 6:10 PM #13
Thanks - it works but I'd like to do something in between - remember state during the session and forget it between sessions...
The code to disable state is:
Code:BorderLayout borderLayout = new BorderLayout(); borderLayout.setEnableState(false); layoutContainer = new LayoutContainer(borderLayout);


Reply With Quote