In Swing there is the possibility of validating and invalidating JComponents.
JComponent
invalidate()