JDK-4549203 : InputVerifier transmits mouse actions to the JComboBox and the JTable
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.3.1_01,1.4.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: generic
  • Submitted: 2001-12-06
  • Updated: 2001-12-06
  • Resolved: 2001-12-06
Related Reports
Duplicate :  
Description
Customer Problem Description:

InputVerifier transmits mouse actions to the JComboBox and the JTable even when shouldYieldFocus() returns false. This is probably a 'feature' but it is not a very desirable one.For instance,

-- Run InputVerifierTest
-- Type five characters in the JTextField.
-- Click on the JComboBox.
-- A message box appears, warning you that you've typed too many characters.
-- After dismissing the message, the combo popup appear and the combo button appears to be pressed (or 'armed').
-- The user needs to click outside of the combo box to get the popup to close. 

The combo should not show the popup window (or appear as pressed) if the InputVerifier has rejected user input.

Comments
EVALUATION This is an RFE. Input verifiers were designed to control focus. Since most components don't care whether they have focus before firing an action the input verifiers don't block them. I'll open an RFE for this and close this out as a duplicate. ###@###.### 2001-12-06
06-12-2001