I agree with helloworld. But you might also look into using a GlassPane to restrict user input (informatively, not annoyingly).