title: Converting a JFrame to a JApplet
body: <p>I have a JFrame application working nicely. However now I'd like to run it on the web as an Applet. This is what I've done:</p>
  
  <pre><code>import MyPackage.*;
  
  import javax.swing.*;
  import javax.swing.event.*;
  import java.awt.*;
  import java.awt.event.*;
  
  public class MyName extends JApplet
  {
  
       public void init() {
          setSize(600,450);
          new MyName()
       }
  
      public MyName() {
          JShellFrame frame = new JShellFrame(true, null, null);
          frame.setVisible(true);
      }
  
  }
  </code></pre>
  
  <p>How can I make an html file to run this applet? Also, I have an external jar file that the applet will need. Does the applet not need a main method?</p>