JDK-4337647 : Swing JTextField tabbing in should select all text to end yet
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.3.0,1.4.0
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • OS: windows_95,windows_nt
  • CPU: x86
  • Submitted: 2000-05-11
  • Updated: 2000-12-05
  • Resolved: 2000-11-23
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Description

Name: ns68243			Date: 05/11/2000

Swing with JDK-1.3 and 1.4, tabbing into the JTextField should 
cause all the text to be selected to the end of the textfield in 
WindowsLookAndFeel, and it doesn't.  It used to work correctly with 1.2.2.  For 
an example of the bug, see FileChooserDemo.  For how it should behave, see the 
network control panel in Windows.
======================================================================

Comments
EVALUATION This happened as a result of fixing 4193750, hopefully with the new focus stuff we can put the code back in. scott.violet@eng 2000-06-15 To correctly imlement this we need the isTemporary flag on the FocusEvent to be set correctly when JMenu grabs focus. When the new focus code is putback, isTemporary can be set correctly for JMenu and then we can implement this behavior. scott.violet@eng 2000-06-27 Windows only selects all the text if the user tabbed into the field (or perhaps was programmaticaly selected). To emulate this behavior we need a way to determine from the FocusEvent why the focus was gained. That is, what it the result of a MouseEvent, a KeyEvent, programmatic... This is currently not possible with the current API, and therefore this can not be currently be done. Refer to RFE 4392097 for details on getting more information from the FocusEvent. When this behavior has been added to the awt, Swing can then support this property. Until then, I am closing this out as will not fix. scott.violet@eng 2000-11-22
22-11-2000