jf.setDefaultCloseOperation(jf.EXIT_ON_CLOSE);//关闭窗口
jf.getContentPane().add(jb);//将button加入到jf中
button.setText("改变按钮字!");
关闭窗口,将按钮添加到窗口中
猜你喜欢
转载自blog.csdn.net/so_band/article/details/80821207
今日推荐
周排行