How to stop lagging in a JPanel?

Printable View