| | |
GUI Component Dragging
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Aug 2008
Posts: 208
Reputation:
Solved Threads: 13
Hello. I've been using NetBeans for quite a while, and I really like the Draggable components that it uses. In both the GUI Builder & the GUI itself. So, my question is, How do you drag components around in the UI like that? I've looked into the java.awt.dnd package, and the tutorials don't really cover component dragging, just text dragging. If anyone has any tips or links to good tutorials, those would be awesome =).
•
•
Join Date: Nov 2008
Posts: 332
Reputation:
Solved Threads: 54
0
#2 Oct 12th, 2009
http://zetcode.com/tutorials/javaswi...l/draganddrop/
Mix examples , for javax.swing.JButton use
an build own D&D.
google search "application/x-java-jvm-local-objectref"
Mix examples , for javax.swing.JButton use
Java Syntax (Toggle Plain Text)
DataFlavor flavorButton = new DataFlavor("application/x-java-jvm-local-objectref; class=javax.swing.JButton");
google search "application/x-java-jvm-local-objectref"
![]() |
Similar Threads
- Pack and SetVisible unsafe (Java)
- Help me! (Java)
- JAVA Concepts (Java)
- Can u explain (Java)
- java problem (Java)
- limit input only two decimal (Java)
- Listeners (Java)
- "cannot resolve symbol"problem (Java)
Other Threads in the Java Forum
- Previous Thread: Creating a Currency Converter.
- Next Thread: Java TV + NetBeans
| Thread Tools | Search this Thread |
Tag cloud for 6, component, dragging, gui, java
.net 6 activex ajax apple applet application array automation balls binary c++ c/c++ chat class classes client code component constructor convert database derby design development developmenthelp draw eclipse error event examples exception file firefox forms fractal game google gui guidancer html image innodb input insight integer j2seprojects java javafx javaprojects javascript jetbrains jmf jsp julia linux listbox loop mergers method microsoft mysql netbeans newbie open-source opensource pearl php problem programming project python qt radio recursion scanner security server set signing socket software sort sql staticcodeanalysis storm string sun swing test testautomation threads time tree user vb web websites windows wxpython






