如何获取组合框的选定项
我正在将 lwuit 与 j2me 一起使用。如何获取组合框选定的项目或索引?我找到了 setSelectedIndex 的函数,但是不是为了被选中。
i'm using lwuit with j2me . how to get combo box selected item or index? i found the function for setSelectedIndex but not for getting the selected.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用此代码:
返回列表中当前选定的偏移量。
返回列表中当前选定的项目或 null 表示没有选择
Use this code :
To return the current selected offset in the list.
To return the current selected item in the list or null for no selection
要获取您选择的字符串:
To get what you selected as a string: