如何禁用 LWUIT 中的组合框?
我在表单中创建了 ComboBox 和 CheckBox。
现在我想做的是,如果我选中 CheckBox 意味着 ComboBox 将被禁用。怎么做呢?
I have created ComboBox and CheckBox in a Form.
Now what I want to do is, if I checked that CheckBox means the ComboBox will be disabled. How to do that?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当选中
CheckBox
时,您应该设置禁用ComboBox
。例如,当您捕获按下的FIRE
键时,您必须将此代码放入actionPerformed
方法中。所以:You should set disable the
ComboBox
when theCheckBox
is checked. You must put this code inside theactionPerformed
method, when you capture aFIRE
key pressed for example. So: