Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为我的 J2ME 应用程序使用 LCDUI。我有两个 Popup ChoiceGroup。第二个 CG 的值应该根据第一个 CG 的选择动态填充。我尝试了setItemCommand方法,但它不起作用。我如何达到预期的结果。任何指针将不胜感激。
我已经尝试过setItemCommand ...
上面的嗯对我来说听起来不对。选择更改事件旨在使用setItemStateListener/itemStateChanged配对而不是项目命令来处理。
setItemStateListener
itemStateChanged
此外,即使使用状态侦听器,第二组也有可能在某些有问题的设备上错过刷新。如果您遇到这种情况,请考虑使用短时间强制换屏Alert作为解决方法
Alert