JDK-4441590 : No way to enforce getMinimumSize during user resize of java.awt.Window
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.3.0
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2001-04-12
  • Updated: 2001-04-12
  • Resolved: 2001-04-12
Related Reports
Duplicate :  
Relates :  
Description

Name: boT120536			Date: 04/12/2001


java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)


With the current VM implementation, the method getMinimumSize() is meaningless
for classes that extend java.awt.Window. It may return a value, but it has no
effect.

  My application needs to place a limit on how small the user can resize certain
windows. The OS supports this, but java gives me no access to it. Although I can
detect the resize and expand the window to the limit, this violates the
platform's look and feel: If the window size has a lower limit, the rubberbands
should show that limit.

  I want the rubberbands to respect the limits set by getMinimumSize(). If not,
I'd like some way to force the VM to keep windows from shrinking beyond the
limit I've imposed.

  This may not be supported by all platforms, but doesn't matter. There's no
reason why it can't be implemented on platforms that support it. (The same
should probably happen for getMaximumSize(), but that's less common.)

  (If you decide not to fix this, could you please let us know what
getMinimumSize() is supposed to mean in this context?)
(Review ID: 120619) 
======================================================================

Comments
WORK AROUND Name: boT120536 Date: 04/12/2001 Detect a resize using a component listener, then expand the window to the limit. ======================================================================
11-06-2004

EVALUATION Duplicate of 4320050 richard.ray@eng 2001-04-12
12-04-2001