简体   繁体   English

Java Netbeans 在模块之间拖放

[英]Java Netbeans Drag Drop between modules

Hi Internet!嗨互联网!

How can I move (drag&drop) one widget or an object from one module to another using the NetBeans Platform?如何使用 NetBeans 平台将一个小部件或对象从一个模块移动(拖放)到另一个模块?

EDIT:编辑:

I need to move (DragAndDrop) an Image/JLabel from one TopComponent to Another TopComponent.我需要将一个 Image/JLabel 从一个 TopComponent 移动(DragAndDrop)到另一个 TopComponent。 I can successfully move one image but I need and ID of that image, that I have as a text in the JLabel.我可以成功移动一张图像,但我需要该图像的 ID,我在 JLabel 中将其作为文本。 I have fail to implement a drag&drop for a JLabel and fail to implement a drag&drop for a JPanel with the JLabel inside.我无法为 JLabel 实现拖放,也无法为内部包含 JLabel 的 JPanel 实现拖放。

If someone can offer hints, and pieces of code, anything is welcome.如果有人可以提供提示和代码片段,任何事情都是受欢迎的。 Thank you谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM