JDK-4232879 : Disposing Dialog nullifies TextField.requestFocus() call
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.2.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_nt
  • CPU: x86
  • Submitted: 1999-04-26
  • Updated: 2001-10-19
  • Resolved: 1999-11-23
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 Other Other Other
1.2.1_002 b02Fixed 1.2.2_002Fixed 1.3.0_02Fixed 1.3.1Fixed
Related Reports
Relates :  
Description
Customer is using JDK1.2 on Windows.

When changing panels in a java.awt.Frame, and using a dialog as a popup message
during the transition between panels can cause erratic behaviour in the application/applet, including requestFocus() and mouse problems. In the test case provided, the focus should always be set to the java.awt.TextField. However, because a message dialog is shown and disposed during the panel transition, the focus stays on the first object added to the layout manager. If you comment out the call to "dlg.dispose" in the closeDlg method, then the 
focus is always given to the java.awt.TextField in the each panel which 
is the desired behavior.  The testcase is located in the attachments.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic FIXED IN: 1.2.1-002 1.2.2-002 ladybird INTEGRATED IN: 1.2.1-002 1.2.2-002 1.3.0_02 1.3.1 ladybird VERIFIED IN: 1.3.0_02 1.3.1_01a
14-06-2004

EVALUATION Look at the evaluation of 4176602. Similar cause for this bug. mingyao.yang@Eng 1999-05-19
19-05-1999