West Point Bridge Contest
|
Posted: January 18, 2012 02:23 by West Point Bridge Contest
|
|
I'd like to propose a small extension that will allow a SingleFrameApplication to be opened with the Maxmized extended state without affecting Normal size/location information in session storage. To me it makes sense that if you initialize your SingleFrameApplication derivation with view = new MyView(this); JFrame frame = view.getFrame(); frame.setExtendedState(frame.getExtendedState() | JFrame.MAXIMIZED_BOTH); the extended state in the Session storage should be overridden and the Frame should always be maximized. Same for initially iconified. Only when you make the window "Normal" would it go to the Session position/size. However at least in Windows this does not work. The extended state in the Session always blows away actual extended state. I was able to get this new behavior entirely within SingleFrameApplication, and I will happily provide my code, but I believe it could be done more cleanly by someone with better knowledge of BSAF internals. I'm happy to create a JIRA ticket and contribute to documentation and of course the code above if this is of interest. This question has been discussed several times in AWT and Swing forums elsewhere with no clean resolution esp in SAF. Google "java start frame maximized" and similar. |
Proposal: Initial extended state overrides session
Replies: 0 - Last Post: January 18, 2012 02:23
by: West Point Bridge Contest
by: West Point Bridge Contest
showing 1 - 1 of 1
Replies: 0 - Last Post: January 18, 2012 02:23
by: West Point Bridge Contest
by: West Point Bridge Contest






