I have try to run a program of JApplet as JFrame, but it didn't works. Can someone help me?Thanks.
public class MyApplet extends JApplet{
//have some coding here
class display extends JPanel{
//have some coding here
}
public static void main(String [] arg){
JFrame frame = new JFrame("MyApplet");
MyApplet applet = new MyApplet();
applet.init();
applet.setSize(1000,650);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);
frame.setResizable(false);
frame.add(applet,BorderLayout.CENTER);
}
}