try
{
// Force the textfield to commit it itself. Even though a focus lost event
// will usually cause this, when used inside a jtable, this event is NOT
// processed until after the cell editors getCellEditorValue is called.
df.commitEdit();
}
catch (ParseException e)
{
// Unable to format so stop editing
return false;