Now my scenario is when i do data validation, navigation to other screens should not be allowed unless valid input is entered in these textfields.

My window has Jtabbedpane which has 3 tabs. Above mentioned Jformattedtextfields is available in one of the tabs. If these textfields has: Duplicate value, empty or invalid data, validation is done and message is displayed.

If one of the text field has duplicate value/empty/invalid data and cursor is still available in the textfield and one of the tab panel is selected, then the validation message is displayed on that tabbed panel.

I need to restrict navigation and display this validation message on the panel where these textfields are available.