An applet is just a container for a java-application. If you have the source-code, there will be some main-class which puts the main-layout into the applet. This code has to be modified and included in your Bean-class.