JCreator中不能关闭界面查看器
我编了如下的的一个java程序:
//引入相关包
import java.awt.*;
public class ButtonEx extends Frame
{
Button b1=new Button("进入社区");
Button b2=new Button("退出");
public ButtonEx()
{
this.setTitle("论坛");
this.add(b1);
this.add(b2);
this.setBounds(100,100,200,300);
this.setVisible(true);
this.setResizable(true);
this.setBackground(Color.GREEN);
this.setAlwaysOnTop(true);
}
public static void main(String args[])
{
new ButtonEx();
}
}
没有错误,用JCreator成功的运行了一个程序并显示了图形界面,但是无法关闭显示图形界面的查看器,运行此程序也是同样的结果,请高手不吝赐教,谢了!