Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4077991
Votes 6
Synopsis RFE: WinNT: update contents of window as it is being resized
Category java:classes_awt
Reported Against 1.0.kz , 1.1beta3 , 1.2alpha2 , kestrel-rc1 , kestrel-beta
Release Fixed 1.4(merlin-beta)
State 10-Fix Delivered, request for enhancement
Priority: 4-Low
Related Bugs 4018010 , 4028562 , 4286216 , 4305619 , 4985303
Submit Date 10-SEP-1997
Description




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).



======================================================================
Work Around




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




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)
======================================================================
Evaluation
We intend to do this for Merlin.  
  xxxxx@xxxxx   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.  

  xxxxx@xxxxx   2000-11-29
Comments
  
  Include a link with my name & email   

Submitted On 26-DEC-2000
dbmartin
There is a separate, but related problem here.  Not only 
does the layout not update while resizing, but the layout 
also flickers while resizing.  

With a lot of experimentation, I was able to discover that 
the flickering only occurs when BOTH height and width 
increase.  If you only increase the width, or only increase 
the height, double buffering appears to work correctly.

Will this be taken care of as well?


Submitted On 27-MAY-2004
boxedfoo
Dynamic layout should be the default behavior on windows if this is how windows is set up. This really needs to be addressed.



PLEASE NOTE: JDK6 is formerly known as Project Mustang