Tab & Alt Tab functionality in JTable
We have an editable time field in our JTable. On focus lost, we would like to format the value of Text field as HH:MM.
We have written a time document and Time Adapter extending FocusAdapter. On focus lost of the adapter, we format the value and set it to the text component.
This works fine when we edit some value and press Alt+Tab and come back to the window. But when we edit some value and press Tab/Enter key, this doesnt work fine. The formatting on focus lost method is called and set in the text component. But in view the value is not formatted.
Can some help? Any clues?
Thanks in Advance