JDK-6199167 : Live resizing
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2004-11-23
  • Updated: 2006-04-06
  • Resolved: 2005-06-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b40Fixed
Description
Currently, native applications on Windows have the property to dynamically relayout and repaint during resizing.  This property is controlled through system desktop settings.  Java doesn't have such property by default, though similar behavior can be controlled by dynamicLayout property.  We need to implement "live resizing" in a similar fashion as native applications do, and have it controlled by system desktop settings.

As part of the work, we should investigate if such behavior works well on all range of supported machines, since originally dynamicLayout was made non-default due to the performance reasons.



Comments
EVALUATION It appears that we already have all the functionality that we need, but it is disabled by default. It is accessible through the Toolkit.setDynamicLayout API. I enabled it by default in Toolkit's constructor, so that user can override it if it is not desirable. We also plan to add a property to control it, and Java Control Panel option. The remaining question is how to guarantee the acceptable performance of this functionality. I was running SwingSet2 with live resizing on. On my P3M/1500/1G/Radeon 9000, it works fine, you don't see the delay during any resizing, almost. I ran 20 SwingSet2 and 8 Java2Demo in background, to slow the machine down. The performance is still acceptable, no notaceable delays in relayouting. ###@###.### 2004-11-30 14:54:51 GMT I also tested it on P2/350/256MB/Matrox G400. At the first run I even couldn't notice live resizing, so slow it was working. Native applications worked fine. ###@###.### 2004-12-01 13:28:56 GMT
30-11-2004