拖曳(Drag and Drop)在Swing中有支持,直接调用setDragEnabled就可以实现“可拖动”效果。常用的控件中都有:setDragEnabled、setDropMode、setDropTarget。
java swing 中怎么实现鼠标拖拽控件到另一个控件的功能?
拖曳(Drag and Drop)在Swing中有支持,直接调用setDragEnabled就可以实现“可拖动”效果。
常用的控件中都有:setDragEnabled、setDropMode、setDropTarget。2014-08-15