問題描述
有沒有類似http://allen-sauer.com/com.allen_sauer.gwt.dnd.demo.DragDropDemo/DragDropDemo.html#PaletteExample 但對(duì)于普通的 Java 應(yīng)用程序,即允許在畫布上拖動(dòng) 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.
你會(huì)想成為farmiluar代碼D'n'D API 如何使用 Java 2 進(jìn)行拖放,第 1 部分
You'll want to become farmiluar with the code D'n'D API How to drag and drop with Java 2, Part 1
您可能想通讀一遍
- 平滑 JList 拖放目標(biāo)動(dòng)畫
- 平滑樹掉落動(dòng)畫
- 我的拖累圖片比你的好
- Dead Simple Drags
- 花式水滴
- 拖動(dòng)圖片為每個(gè)人......我們的意思是每個(gè)人
- 放置目標(biāo)導(dǎo)航,或者你拖著你的包
- 擺動(dòng)拖動(dòng)圖像,改進(jìn)
- 改進(jìn)的拖動(dòng)圖像
您可能還想熟悉 GlassPane代碼>
You may also want to become familiar with the GlassPane
這篇關(guān)于Java - 可視地拖動(dòng)擺動(dòng)元素的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!