http://s1194.photobucket.com/albums/ aa371/RewindPlay/?action=view¤t=downup.png
我正在查看 3 个传感器。传感器 1-3 都需要为 !=0,直到启用生成按钮才能将代码(由用户在传感器中选择)放入层次结构视图中。
我确实有这个工作,但只有当你选择一个又一个的顶部太底部时。
(例如:如果您选择中间传感器 (2),然后选择顶部 (1),然后选择底部 (3) - 生成按钮保持灰色且无法生成。)
是否有技巧可以让用户可以以无序方式选择这个?
我立即想到了 and/or 运算符,但 Java 没有。
http://s1194.photobucket.com/albums/aa371/RewindPlay/?action=view¤t=downup.png
I have 3 sensors I am looking at. Sensors 1-3, all need to be !=0 until the generate button is enabled to throw the code (that was selected in the sensors by the user) into a hierarchy view.
I do have this working, but only when you select one after another top too bottom.
(example: If you select the middle sensor (2), then the top (1), and then the bottom (3) - generate button stays greyed out and unable to generate.)
Is there a trick to make it so the user can select this in an unordered fashion?
I immediately thought of and/or operators, but Java does not have that.
发布评论
评论(1)
从需求的描述来看,听起来好像是 3 x JRadioButton rel="nofollow">
ButtonGroup
就可以了。From the description of the requirement, it sounds as though 3 x
JRadioButton
in aButtonGroup
would do the trick.