Properly fix frame size / position parameters

Bug #187664 reported by Charles Goodwin
2
Affects Status Importance Assigned to Milestone
Vexi
New
Medium
Charles Goodwin

Bug Description

Basically the frame size handling logic is wrong. Previous attempts were to manually constrain frame size to the minimum / maximum bounds of the root box. Obviously the proper way to do this is to use the appropriate Java AWT methods on Containers / Frames:

Maximum size:
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Frame.html#setMaximizedBounds(java.awt.Rectangle)

Shrink needs to either set the maximum size to the minimum size or use setResizable():
http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Frame.html#setResizable(boolean)

For minimum size, it doesn't seem quite so simple:
http://www.javaworld.com/javaworld/javaqa/1999-10/03-qa-window.html

More info here:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4320050

Revision history for this message
Charles Goodwin (charlesgoodwin) wrote :

Possible minimum size solution here:
http://www.jguru.com/faq/view.jsp?EID=232719

Changed in vexi:
assignee: nobody → charlesgoodwin
importance: Undecided → Medium
milestone: none → 3.0
description: updated
description: updated
Revision history for this message
Charles Goodwin (charlesgoodwin) wrote :

How to enforce minimum size in AWT:
http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=2&t=003657

I think we had something similar before but it was handling in the wrong part - it needs doing in InnerFrame and IIRC the implementation was on componentResized in AWTSurface.

This one is Swing but looks like it's the same / similar:
http://www.javalobby.org/java/forums/t15453.html

Revision history for this message
Charles Goodwin (charlesgoodwin) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.