JDK-4160307 : Multiple components can be highlighted (as if focus owners) at the same time
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 1998-07-24
  • Updated: 2000-11-02
  • Resolved: 2000-11-02
Related Reports
Duplicate :  
Description
Using the sample code from bug #4108907, run the program and do the following:

Click on the menu to pull it down. Click in one of the buttons. Menu will unpost, button will "go down", then (as you release the mouse button) the  button will "go up", and it will aquire a highlight (i.e., it is selected). Now, click on the menu again. The menu will pull down, and the highlighted button will unhighlight (as it should). Now (while the menu is down) click in the *other* button. The menu will unpost, the button will go down, then up, then aquire a highlight, just like the other button did before. So far so good. Now, for the punch line, click on the menu to pull it down again. The menu will pull down, but the highlighted button will remain highlighted.

Via a sequence of events which I can't completely characterize (but which I believe is deterministic and reproducible), it's possible to have both the buttons highlighted, and also have the menu down. Major confusion.


Comments
EVALUATION The behavior is no longer exactly as described in the bug report, but it's still broken. In general, there seem to be alot of problems in this area (focus and menus). hania.gajewska@Eng 1999-09-15 Name: keR10081 Date: 11/02/2000 This bug is no longer reproducible after focus management enhancement putback and will be closed as a duplicate of 4290675 ======================================================================
11-06-2004