I have a JTextField and when focusLost event is triggered it get details from the database and fill the other fields.
So there is a check there to make sure the JTextField is not empty to do so. That is grand but if focus is on this JTextField and I hit the canel button I get the message the JTextField cannot be empty.
Is there anyway to find out in the FocusLost if the next component to get the focus is a Cancel button?
Or is there another way to do this.