Java text to applet converter ... is there such a thing?
<p>Let's say you have this program:</p>

<pre><code>public class sample

        public static void main(String args[])
        {
           System.out.println("Hello world!");
        }
}
</code></pre>

<p>... is there a converter that will turn it into this:</p>

<p>import java.applet.Applet;
import javax.swing.*;</p>

<pre><code>public class sample extends JApplet
{

    public static JTextArea area;

    public void init()
    {

        area = new JTextArea();
        add(area);
        area.append("Hello world!");
    }
}
</code></pre>

<p>I mean, I can do it by hand... but it would take some time.</p>
