This is a combo-box that allows listeners to be informed of mouse entered and
mouse exited events. Note that other mouse events besides MOUSE_ENTERED and
MOUSE_EXITED still do not get delivered. This is because sending a MOUSE_PRESSED,
MOUSE_CLICKED or MOUSE_RELEASED event would cause the combo box popup to be
hidden immediately after it has been shown, resulting in that it would not be
shown at all. This class was created as a fix/workaround for Swing bug #4144505.
author: Mike Atkinson (Mike@ladyshot.demon.co.uk author: ) author: Dirk Moebius (dmoebius@gmx.net author: ) version: $Version: $ since: 1.0
Constructor Summary
public
JMouseComboBox() Creates a JMouseComboBox with a default data model.
public
JMouseComboBox(Object[] items) Creates a JMouseComboBox that contains the elements in the specified array.
public
JMouseComboBox(ComboBoxModel aModel) Creates a JMouseComboBox that takes its items from an existing ComboBoxModel
.
public
JMouseComboBox(Vector items) Creates a JMouseComboBox that contains the elements in the specified Vector.
Creates a JMouseComboBox that takes its items from an existing ComboBoxModel
.
Parameters: aModel - the ComboBoxModel that provides the displayed list of items