United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4697451 : Component doesn't become focused when clicked.

Details
Type:
Bug
Submit Date:
2002-06-05
Status:
Resolved
Updated Date:
2002-10-18
Project Name:
JDK
Resolved Date:
2002-10-18
Component:
client-libs
OS:
solaris_7,linux
Sub-Component:
java.awt
CPU:
x86,sparc
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.1
Fixed Versions:
1.4.2 (mantis)

Related Reports
Duplicate:

Sub Tasks

Description

Name: dmR10075			Date: 06/05/2002


The bug exists on Hopper b10-b12. When I click on Button in inactive
frame, after frame becomes active Button doesn't become focus owner.
Presumably this happens with all heavyweight components.

How to reproduce:
1. Run regression test test/java/awt/Focus/MixedWeightFocus.
2. Current active window will be Modeless dialog.
3. Click on "button 2" in FocusFrame.

You will see that FocusFrame will become active but "button 1" will be
focus owner. Sometimes "button 2" however becomes focus owner. There
seems to be a race somewhere in focus machinery.

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

                                    

Comments
EVALUATION



Name: dmR10075			Date: 08/19/2002


The problem happens because of the race between mouse press callback in native 
code (canvas.c:track_motif...) (which sets focus to pressed component and 
generates focus events) and Java code processing WINDOW_GAINED_FOCUS event 
(which requests focus on default component). If the latter requests focus after 
the former has been processed then default component will receive focus after 
clicked.
###@###.### 2002-08-19

======================================================================
                                     
2002-08-19
WORK AROUND



Name: dmR10075			Date: 06/05/2002


Make frame active by clicking on its caption before clicking on any of
its children.

======================================================================
                                     
2004-08-24
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mantis

FIXED IN:
mantis

INTEGRATED IN:
mantis
mantis-b04


                                     
2004-08-24



Hardware and Software, Engineered to Work Together