2011-11-21 44 views

回答

0

不要直接使用对话框,而要创建一个导出Dialog的类。实施pointerReleased方法,假定该设备是tactile,然后测试xy PARAMS包含在由按钮的限定的区域内的坐标:

if ((x >= btn.getAbsoluteX() && x <= btn.getAbsoluteX() + btn.getPreferredW()) && (y >= btn.getAbsoluteY() && y <= btn.getAbsoluteY() + btn.getPreferredH())) 
    // execute the Buttons's action method 
else 
    super.pointerReleased(x,y); 
相关问题