United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4077991 : RFE: WinNT: update contents of window as it is being resized

Details
Type:
Enhancement
Submit Date:
1997-09-10
Status:
Resolved
Updated Date:
2000-11-29
Project Name:
JDK
Resolved Date:
2000-11-29
Component:
client-libs
OS:
windows_nt,generic
Sub-Component:
java.awt
CPU:
x86,generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.0,1.1,1.2.0,1.3.0
Fixed Versions:
1.4.0 (beta)

Related Reports
Duplicate:
Duplicate:
Duplicate:
Relates:
Relates:

Sub Tasks

Description

Name: sg39081			Date: 09/10/97


Resizing a window (with solid resize ON) in winNT doesn't update correctly, i.e., 
it recalculates the layout only when the drag is finished.


To set the solid resize, try Display Properties (Right click on the WinNT 4.0 desktop), on the
"Plus!" tab there is an option called "Show window contents while
dragging". Check it, then click OK or Apply. After that, the Move/Resize
of any window is solid, and the problem I described appears (compare it
with other applications, such as navigator).



======================================================================

                                    

Comments
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
merlin

FIXED IN:
merlin-beta

INTEGRATED IN:
merlin-beta


                                     
2004-06-14
WORK AROUND



Name: sg39081			Date: 09/10/97


none
======================================================================

Name: krT82822			Date: 04/02/2000


Workaround:
I don't know of any workaround one can do in the AWT/Swing
application.

  Fixing the JDK:
I have located the reason to the incorrect behaviour in the source
code for JDK 1.3.
File: src\win32\native\sun\windows\awt_Window.cpp
Line: 480
Function: AwtWindow::WmSize()
The code on this line uses a flag (m_resizing) to always avoid
sending size updates during a resize. The correct behavior would
be to let the resize updates through when "show window contents
while dragging" is active.
Probably you can always let the size updates through, because
Win32 will itself filter out the size updates when the mentioned
display property is disabled.
(Review ID: 103175)
======================================================================
                                     
2004-06-11
EVALUATION

We intend to do this for Merlin.  
eric.hawkes@eng 1999-12-31

Several new methods have been added to Toolkit.java to allow user control 
of this behavior where the underlying platform supports it.  The Javadoc 
comments for Toolkit.isDynamicLayoutActive, Toolkit.setDynamicLayout, etc. 
document the usage and behavior.  

Note: the code and diagnosis in the workaround section is not correct.  

eric.hawkes@eng 2000-11-29
                                     
2000-11-29



Hardware and Software, Engineered to Work Together