开发者

JButton in Java swing

开发者 https://www.devze.com 2022-12-12 04:52 出处:网络
Is there a way 开发者_StackOverflow社区to check whether a button is enabled is set to true or false through code?boolean enabled = button.isEnabled()Just in case you are not aware of it Sun has put al

Is there a way 开发者_StackOverflow社区to check whether a button is enabled is set to true or false through code?


boolean enabled = button.isEnabled()


Just in case you are not aware of it Sun has put all the documentation for their Java classes online. This should be your first port of call for questions on the Java SDK classes. For documentation on JButton. You are obviously welcome to ask questions here as well :)

0

精彩评论

暂无评论...
验证码 换一张
取 消