晕。楼上的比我快。
建议楼主多看看J2sdk1.4.2官方技术文档
其中描述如下:
setEnabled
public void setEnabled(boolean b)Enables (or disables) the button. Overrides:
setEnabled in class JComponent
Parameters:
b - true to enable the button, otherwise false
See Also:
Component.isEnabled(), Component.isLightweight()
建议楼主多看看J2sdk1.4.2官方技术文档
其中描述如下:
setEnabled
public void setEnabled(boolean b)Enables (or disables) the button. Overrides:
setEnabled in class JComponent
Parameters:
b - true to enable the button, otherwise false
See Also:
Component.isEnabled(), Component.isLightweight()
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货