Some changes in applet.java