Hi,
thanks for all the valuable information.
there is another solution I can find for this problem thats to create a FocusAdapter and on Focus lost event just dispatch the ENTER key event.Thus , as soon as person presses tab and the text field looses focus, we can do our computaions as in :
and add this focus listner to the text field as JTextField sample = new JTextField(); sample.addFocusListener(new TestFocusListener());
sample.addActionListener(new ActionListner() ...../* what ever code you want to write*/. )