GUI Component Dragging

Reply

Join Date: Aug 2008
Posts: 203
Reputation: llemes4011 is an unknown quantity at this point 
Solved Threads: 13
llemes4011 llemes4011 is offline Offline
Posting Whiz in Training

GUI Component Dragging

 
0
  #1
Oct 11th, 2009
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 =).
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 332
Reputation: quuba is on a distinguished road 
Solved Threads: 53
quuba quuba is offline Offline
Posting Whiz
 
0
  #2
Oct 12th, 2009
http://zetcode.com/tutorials/javaswi...l/draganddrop/
Mix examples , for javax.swing.JButton use
  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"
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 203
Reputation: llemes4011 is an unknown quantity at this point 
Solved Threads: 13
llemes4011 llemes4011 is offline Offline
Posting Whiz in Training
 
0
  #3
Oct 12th, 2009
=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.
Reply With Quote Quick reply to this message  
Reply

Tags
6, component, dragging, gui, java

Message:



Similar Threads
Other Threads in the Java Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC