United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-5025858 : Resizing a decorated frame triggers componentResized event twice.

Details
Type:
Bug
Submit Date:
2004-04-02
Status:
Resolved
Updated Date:
2005-09-07
Project Name:
JDK
Resolved Date:
2005-09-07
Component:
client-libs
OS:
solaris_9
Sub-Component:
java.awt
CPU:
sparc
Priority:
P4
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

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

Sub Tasks

Description
Bug Description:
----------------
Resizing a decorated frame using setSize method triggers componentResized event twice.This doesn't happen in windows.

JDK-INFO:
---------
java version "1.5.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta2-b43)
Java HotSpot(TM) Client VM (build 1.5.0-beta2-b43, mixed mode)

SYSTEM-INFO:
------------
SunOS aparup.india.sun.com 5.9 sun4u sparc 
 
BUILD-LOCATION:
---------------
/net/sqindia.india.sun.com/export/disk09/jdk/1.5.0/beta2/b43/binaries


Steps to Reproduce -
-------------------
1. Compile the file that is attached with this bug.
2. Now Execute, the componentResized event should be triggered twice. 

###@###.### 2004-04-02

                                    

Comments
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mustang


                                     
2004-09-07
EVALUATION

Name: rpR10076			Date: 04/02/2004


We might want to find out why the system sends us so many resize events.
The problem doesn't look critical for tiger, though.
###@###.###


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

Name: dmR10075			Date: 04/02/2004


One of the events is generated right in Component.java, it is necessary
to handle lightweight components. But for heavyweight peers it is 
probably not necessary since native systems generates events by itself.
Since we do postEvent, we can probably change this code to generate events
for lightweight components, and don't generate for heavyweight assuming
native system will generate them later.
###@###.### 2004-04-02

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

Might be considered performance related, since each COMPONENT_RESIZED event on toplevel causes validate()
###@###.### 2005-05-26 11:40:52 GMT
                                     
2005-05-26
SUGGESTED FIX

http://sa.sfbay.sun.com/projects/awt_data/mustang/5025858/
                                     
2005-11-10



Hardware and Software, Engineered to Work Together