本文介紹了Java - 可視地拖動擺動元素的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
限時送ChatGPT賬號..
有沒有類似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
您可能想通讀一遍
- 平滑 JList 拖放目標動畫
- 平滑樹掉落動畫
- 我的拖累圖片比你的好
- Dead Simple Drags
- 花式水滴
- 拖動圖片為每個人......我們的意思是每個人
- 放置目標導航,或者你拖著你的包
- 擺動拖動圖像,改進
- 改進的拖動圖像
您可能還想熟悉 GlassPane代碼>
You may also want to become familiar with the GlassPane
這篇關于Java - 可視地拖動擺動元素的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!