Can a window be maximizable but not resizable

just wondering if there is a way to keep window maximizing available but inhibit users from resizing while not maximized. this basically allows for two window sizes: a default size and a maximized size.

Could you not just register yourself as a ComponentListener on the window, and on a resize event, change the size back? I have not tested this, but, it sounds like a reasonable hack.
Or, set the min/max/preferred size all the same, then, listen for maximize events, and set reset the values based on the screen dimensions. Again, never tested, but, would be the first two things I would try.

Similar Messages

Maybe you are looking for