How do you convert a JFrame to an Applet?
807601Jan 18 2008 — edited Jan 18 2008I'm trying to convert a JFrame to an Applet but nothing seems to be working. Here is a sample of the code I'm using...
public static void main(String args[])
{
Component applet = new Lab4c1c();
JFrame frame = new JFrame("My applet, as application");
frame.getContentPane().add(applet);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.show();
}