fix paint on main.java