943,981 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1475
  • Java RSS
Oct 11th, 2009
0

GUI Component Dragging

Expand Post »
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 =).
Similar Threads
Reputation Points: 41
Solved Threads: 13
Posting Whiz in Training
llemes4011 is offline Offline
224 posts
since Aug 2008
Oct 12th, 2009
0
Re: GUI Component Dragging
http://zetcode.com/tutorials/javaswi...l/draganddrop/
Mix examples , for javax.swing.JButton use
Java Syntax (Toggle Plain Text)
  1. DataFlavor flavorButton = new DataFlavor("application/x-java-jvm-local-objectref; class=javax.swing.JButton");
an build own D&D.
google search "application/x-java-jvm-local-objectref"
Reputation Points: 123
Solved Threads: 106
Posting Pro
quuba is offline Offline
573 posts
since Nov 2008
Oct 12th, 2009
0
Re: GUI Component Dragging
=D Thanks a lot! That page has lots of info on it!
I'm going to leave this open for now in case others have stuff to add.
Reputation Points: 41
Solved Threads: 13
Posting Whiz in Training
llemes4011 is offline Offline
224 posts
since Aug 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Creating a Currency Converter.
Next Thread in Java Forum Timeline: Java TV + NetBeans





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC