I use JCalendar's JDateChooser in a table date column as a tablecelleditor. The problem is that when the column cell clicked JDateChooser appears but if it loses its focus it does not fire focus lost event. How to make it fire focus lost event? And after doing this is there any way to prevent its firing focus lost when JCalendar appeared after clicking the JCalendar Button?
The thing I try to do is if some one specify a date by selecting a date from the calendar stopCellEditing(); Else wait until focus lost event to stop or cancelCellEditing();

I found a
propertyChangedevent inJDateChooserwhich is fired when a date selected. AndjTable1.putClientProperty("terminateEditOnFocusLost", true);make the table terminate edit on focusLostEdit : When calendar popup is down if you want to change the year that make table cell lose focus and terminateEditing :(
Edit(Solved) : Instead of using
jTable1.putClientProperty("terminateEditOnFocusLost", true);adding taFocusListenertoJTableinTableCellEditorand cancel editing when focus lost give a chance to check if theJDateChooser'spopup is visible or not. But before this,JDateChoosershould be extended with a popupisVisiblemethod. Because popup variable is protected. And cell editor components should not be focusable elseJTablealso loses its focus