How can I make a JDialog to make main Frame to "sleep"

Printable View