在SWT中如如何获取table中某行的值
我这样没有获取到table.addListener(SWT.MouseDown,newListener(){@OverridepublicvoidhandleEvent(...
我这样没有获取到
table.addListener(SWT.MouseDown, new Listener(){
@Override public void handleEvent(Event event) { // TODO Auto-generated method stub TableItem item =table.getItem(new Point(event.x,event.y)); MessageBox mb = new MessageBox(shell,SWT.ICON_QUESTION|SWT.OK); mb.setText("提示"); mb.setMessage("您点击了:"+item.getText()); mb.open(); } });请指点 展开
table.addListener(SWT.MouseDown, new Listener(){
@Override public void handleEvent(Event event) { // TODO Auto-generated method stub TableItem item =table.getItem(new Point(event.x,event.y)); MessageBox mb = new MessageBox(shell,SWT.ICON_QUESTION|SWT.OK); mb.setText("提示"); mb.setMessage("您点击了:"+item.getText()); mb.open(); } });请指点 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询