有没有类似http://allen-sauer.com/com.allen_sauer.gwt.dnd.demo.DragDropDemo/DragDropDemo.html#PaletteExample 但对于普通的 Java 应用程序,即允许在画布上拖动 gui 元素?
Is there a similar solution to http://allen-sauer.com/com.allen_sauer.gwt.dnd.demo.DragDropDemo/DragDropDemo.html#PaletteExample but for normal Java applications, i.e. allowing gui elements to be dragged around on a canvas?
谢谢
是的,有可能.不,这不是微不足道的.
Yes, it's possible. No it's not trivial.
你会想成为farmiluar代码D'n'D API 如何使用 Java 2 进行拖放,第 1 部分
You'll want to become farmiluar with the code D'n'D API How to drag and drop with Java 2, Part 1
您可能想通读一遍
您可能还想熟悉 GlassPane代码>
You may also want to become familiar with the GlassPane
这篇关于Java - 可视地拖动摆动元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!