当我选择
注意,我不是要监听项目选择更改,而是要在用户选择
JCombobox
时,我希望能处理其被选择时下拉菜单出现以及下拉菜单消失且JCombobox
被取消选择时的事件。注意,我不是要监听项目选择更改,而是要在用户选择
JCombobox
且UI弹出下拉菜单时处理事件。JCombobox
时,我希望能处理其被选择时下拉菜单出现以及下拉菜单消失且JCombobox
被取消选择时的事件。JCombobox
且UI弹出下拉菜单时处理事件。public interface PopupMenuListener extends EventListener {
/**
* This method is called before the popup menu becomes visible
*/
void popupMenuWillBecomeVisible(PopupMenuEvent e);
/**
* This method is called before the popup menu becomes invisible
* Note that a JPopupMenu can become invisible any time
*/
void popupMenuWillBecomeInvisible(PopupMenuEvent e);
/**
* This method is called when the popup menu is canceled
*/
void popupMenuCanceled(PopupMenuEvent e);
}