I'm using CardLayout to contain some forms, and my problem is quite simple.

On the first shown item in the CardLayout the form is validated when shown, so we have the nice red icons telling the user that the form hasn't been filled yet.

Problem arises when the next form is activated I need to go through the fields to get them to validate even though they are identical to the first.

Is there a good solution for this? Adding a method that goes through each field in the form and manually validate it doesn't seem to be a good solution to me (it would work, but be ugly)