How to let a thread sleep while its respective Jpanel is not showing

Printable View