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: 4628020
Votes 1
Synopsis Packed frames are sized incorectly if disposed and re-shown.
Category java:classes_awt
Reported Against merlin , merlin-rc1
Release Fixed 1.4.0_03
State 10-Fix Delivered, bug
Priority: 4-Low
Related Bugs 4615863 , 4858193
Submit Date 24-JAN-2002
Description





As reported in 4615863 (problem3), subwindow size become smaller by
clicking "open window" button and "alt-F4".

What really happens is that a packed frame is being disposed and then
shown again and the code to calculate insets under X11 resizes the
frame incorrectly.

Filing this as a separate bug report for easier tracking.

 xxxxx@xxxxx   2002-01-24

======================================================================
Work Around
N/A
Evaluation




When we do the infamous resize dance after correct insets are
computed, we check if the requested top-level size was set via pack().
If it was, then we take the interior size as the constraint and assume
that it was computed with incorrect insets.  So we resize the
top-level to adjust for corrected insets and to keep the interior size.

The way it was done is very simple-minded - we just set a flag in pack
and check that flag when we realize the peer.  The top-level is then
resized but the flag is not cleared.  So when he top-level is disposed
and realized again, the code thinks that the size of the top-level
(corrected upon first show()) was computed using incorrect insets and
re-resizes the top-level &c.  So on each show() the top-level size is
repeatedly adjusted by the difference between the insets guess
(usually wrong) and actual insets.

 xxxxx@xxxxx   2002-01-24

======================================================================
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang