[cp-patches] RFC: Combo box mouseclick

Francis Kung fkung at redhat.com
Mon Jun 12 18:09:05 UTC 2006


Please find attached a patch to fix mouseclick actions in the JComboBox.

Previously, if you clicked on the combo box button while the popup menu
was already open, it would close and immediately re-open the popup; this
was caused by two listeners both catching the mouseclick and both
toggling the menu (ie toggled off, then immediately toggled back on).
This patch disables one of the listeners while the popup menu is

Unfortunately, the fix isn't evident at the moment due to a new bug in
JComponent introduced by the VolatileImage patch, but has been tested
against pre-VolatileImage code.  Not sure how to write a mauve test,
since it must simulate a mouseclick on a specific component's


2006-06-12  Francis Kung  <fkung at redhat.com>

        * javax/swing/plaf/basic/BasicComboPopup.java:
	(setVisible): new method

-------------- next part --------------
A non-text attachment was scrubbed...
Name: BasicComboPopup.diff
Type: text/x-patch
Size: 1762 bytes
Desc: not available
Url : http://developer.classpath.org/pipermail/classpath-patches/attachments/20060612/9beaf8a2/BasicComboPopup.bin

More information about the Classpath-patches mailing list