[英]How can i make my checkbox checked by itself
I'm basically facing an issue with a checkbox. 我基本上面临一个复选框问题。 Indeed, I'd like to use a button which is gonna look for a boolean value in my database, and if the value is true and that i click on the button, the box is going to get checked by itself.
确实,我想使用一个按钮,该按钮将在数据库中查找一个布尔值,如果该值为true并单击该按钮,则该框将被单独检查。
if(myValue.isTrue())
{
this.mybox."getchecked()";
}
But I don't know how to do so, which methods to use, and have not been able to find any results for netbeans do you guys have any solution, thanks for all. 但是我不知道该怎么做,使用哪种方法,还不能为netbeans找到任何结果,你们有什么解决方案,谢谢大家。
这可以通过以下方法完成: this.mybox.setSelected(true);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.