<AWT Dev> [9] setMaximumSize() and setMaximizedBounds()
Alexander Zvegintsev
alexander.zvegintsev at oracle.com
Thu Dec 19 02:46:39 PST 2013
Hello AWT team,
I am currently looking at JDK-6464548 issue[1], and as you can see in
javadoc[2]
we have only setMinimumSize() implemented in java.awt.Window and
setMaximumSize() is not implemented.
So my question is about how setMaximumSize() (and setMinimumSize())
should interfere with setMaximizedBounds()[3]?
I see several options here:
1. setMaximizedBounds() refers to a different state and does not depend
on setMaximumSize() and setMinimumSize()
2. setMaximizedBounds() respects setMaximumSize() and setMinimumSize().
If the window is maximized and maximized
bounds does not conform with maximum or minimum size then window will
shrunk or enlarge to honor these sizes.
3. If maximum size is set then we deny window maximize operation and
setMaximizedBounds() have no effect.
What do you think?
[1] https://bugs.openjdk.java.net/browse/JDK-6464548
[2]
http://docs.oracle.com/javase/7/docs/api/java/awt/Window.html#setMinimumSize(java.awt.Dimension)
[3]
http://docs.oracle.com/javase/7/docs/api/java/awt/Frame.html#setMaximizedBounds(java.awt.Rectangle)
--
Thanks,
Alexander.
More information about the awt-dev
mailing list