JDK-4697451 : Component doesn't become focused when clicked.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.1
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: linux,solaris_7
  • CPU: x86,sparc
  • Submitted: 2002-06-05
  • Updated: 2002-10-18
  • Resolved: 2002-10-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.2 mantisFixed
Related Reports
Duplicate :  
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
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mantis FIXED IN: mantis INTEGRATED IN: mantis mantis-b04
2004-08-24

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

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