刚才在看类子当中,发现实例一个JButton后,
JButton jb=new JButton();
后面用到了jb.setAction(**);和jb.setText(**);
我发现要发按钮上能显示setText的内容,setText()方法一定要在setAction()方法之后,是这样吗,那又是为什么呢??
JButton jb=new JButton();
后面用到了jb.setAction(**);和jb.setText(**);
我发现要发按钮上能显示setText的内容,setText()方法一定要在setAction()方法之后,是这样吗,那又是为什么呢??
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货