United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6199167 Live resizing
JDK-6199167 : Live resizing

Details
Type:
Enhancement
Submit Date:
2004-11-23
Status:
Resolved
Updated Date:
2006-04-06
Project Name:
JDK
Resolved Date:
2005-06-05
Component:
client-libs
OS:
generic
Sub-Component:
java.awt
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports

Sub Tasks

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
                                     
2004-11-30



Hardware and Software, Engineered to Work Together