Unexpected behavior Thread.sleep() is used within CardLayout

Printable View