触摸设备返回了错误的 selectedRow
当设备是触摸设备时,我想在 pointerPressed
方法中处理表格的选定行,并且我得到的是错误的值:例如,我单击了第三行(PS:标题行是 -1 ),我在 System.out.println 中得到 0 作为值!当我单击另一行时,我会得到之前选择的行! 那么如何将LWUIT与所选行同步呢?
I want to work with the selected row of a Table when the device is a touch one in the pointerPressed
method , and what I get is a wrong value : for example I clicked the third line ( PS : the header line is -1 ) and I got 0 as a value in the System.out.println
! And when I click another row then I get the row I selected before !
So how to synchronize LWUIT with the selected row ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好的,我找到了解决方案:在我编写的构造函数中:
以下是实现的方法:
Ok , I found the solution : in the constructor I wrote :
And here are the implemented methods :