Java program freezing while using graphics?

Printable View