How To Covert a Java Application to an Applet Program

Imagine that you have a Java program written as an application with the target class called Target. We now want to convert this application to an applet.