composite1.addMouseTrackListener(new MouseTrackListener() {
@Override
public void mouseHover(MouseEvent e) {
}
@Override
public void mouseExit(MouseEvent e) {
}
@Override
public void mouseEnter(MouseEvent e) {
Point p = Display.getCurrent().getCursorLocation();
String text = lblNewLabel1.getText();
System.out.println("p坐标"+p.x+" "+p.y);
new HoverHelpDialog(lblNewLabel1.getShell(), text).open(p.x, p.y);
}
});
如上,鼠标放上后有的弹不出来窗口,老卡死,不灵敏
添加回答
举报
0/150
提交
取消