变成方框,是因为这几个汉字解析不出来,根本原因的确是编码问题,可以进行编码的设置。
也可以选择去掉,左手角的是标题栏,左下角的是状态栏
你可以作为java application运行
只需要给applet添加一个main()方法
JApplet applet=new applet();
JFrame frame=new JFrame(title(panel));
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().add(panel);
frame.setSize(width, height);
frame.setVisible(true);
没关系的