Try using sgame1.flush(); after you clear it.