JCreator中不能关闭界面查看器

lvfengchang lvfengchang 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我编了如下的的一个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成功的运行了一个程序并显示了图形界面,但是无法关闭显示图形界面的查看器,运行此程序也是同样的结果,请高手不吝赐教,谢了!
...全文

相关推荐

评论 3
收藏 已收藏
分享
返回顶部
lvfengchang
Java 51,407 成员 86,133 内容