Se è un'applet che lavora con AWT o swing dovresti cambiare tutto quel codice, magari cambiare tutto usando i JFrame.