把内容改了,不要把函数名改掉,不然程序调用不了
public void show() { frame.setVisible();
这样就可以了
frame.setVisible(true);有什么问题呢一般是这个的。