这个东西既是Applet又是一个带有main方法的东西
就是这么简单

解决方案 »

  1.   

    就是这么简单.用JFrame就可以代替网页装入JApplet!
    比如:
    public class hello extends JApplet{
        public void init(){
            getContentPane().add(new JLabel("hello!"));
        }
        public static void main(String[] args){
            JApplet applet=new hello();
            JFrame frame=new JFrame("建这个JFrame来把JApplet装进去");
            frame.getContentPane().add(applet);
            frame.setSize(874,253);
            applet.init();
            applet.start();
            frame.setVisible(true);
        }
    }