How do you make a JFrame modal?

Printable View