代码如下:
public class mapViewer extends JFrame{
public static void main(String[] arg) throws Exception{
mapViewer frame=new mapViewer();
JMapPane mappane=new JMapPane();
frame.setSize(800,600);
frame.setVisible(true);
}
}
程序运行时,窗口一闪就没了。进程也退出了。这是怎么回事?