JFrame freezes when button is clicked

Printable View