Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ComboBox close up

Status
Not open for further replies.

kohinoor2007

Programmer
Mar 21, 2007
69
DE
Hi Guys,

Is there any way to trap a combo close up event.ItemListener & action listener event is not doing the thing, I want it do.

The scenario is as follows:

Have a combobox filled with values.When the user browses through the combo drop down list, the Item state or action event is getting called.

Want to call these events only when the pop up window is closed.

Tried something as follows:

public void itemStateChanged(ItemEvent e)
{
if(!ComboBox.isPopupVisible()))

callUpdate();
}

It doesnt seem to work, because after the combo pop window is closed,the item event is not getting called.

Any idea how to achieve it....

Thanks
 
Couldn't you just call the update on the window close event?
 
The event is thrown when the thing happens, neither before, nor after.

I think you should store the result of the event and react after the popup is closes, ie, with the close event.

Cheers,
Dian
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top