-
Enhancement
-
Resolution: Fixed
-
P4
-
1.3.0, 5.0, 6
-
b51
-
generic, x86
-
generic, linux_redhat_8.0, windows_nt, windows_xp
8 Mar 2000, eval1127@eng -- easily worked around. Could not find any still-open
bugs re. this, so am filing new one.
java version "1.2.2"
Classic VM (build JDK-1.2.2-W, native threads, symcjit)
Since there is no method to set a minimum size on a java.awt.Frame, the most
obvious way to control this behavior is to extend the Frame object and override
the getMinimumSize() method. However, when this is done, the minimum size that
I set is not being enforced. Any other suggestions?
Sample code as follows:
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
import java.awt.*;
public class ResizeTest extends Frame
{
private final Dimension m_dim = new Dimension(200, 150);
public static void main(String args[])
{
new ResizeTest("Resize Test");
}
public ResizeTest(String title)
{
super(title);
setLayout(new BorderLayout());
setSize(m_dim);
show();
}
public Dimension getPreferredSize() { return m_dim; }
public Dimension getMinimumSize() { return m_dim; }
}
(Review ID: 102158)
======================================================================
- duplicates
-
JDK-4900571 Application Launched by JWS can be resized to negative size on Linux
-
- Closed
-
-
JDK-6396632 GTK L&F:JDialog doesn't have minimum and maximum bounds while resize by compare with native.
-
- Closed
-
-
JDK-4450706 RFE: need to enforce setMinimumSize on window components
-
- Closed
-
-
JDK-4441590 No way to enforce getMinimumSize during user resize of java.awt.Window
-
- Closed
-
- relates to
-
JDK-6318090 PIT: Documentation for pack() method is not updated to reflect the impact of min size
-
- Closed
-
-
JDK-6318144 PIT:Setting Min Size bigger than current size enlarges the window but fails to revalidate, Sol-CDE
-
- Closed
-
-
JDK-4913186 JFileChooser can be resized to size of title icon unlike native Mercury dialog
-
- Closed
-