File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes dragging Jlabel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "dragging Jlabel" Watch "dragging Jlabel" New topic

dragging Jlabel

vinay babu

Joined: Aug 13, 2001
Posts: 1
i have JPanel wherin i have n labels
im using java.awt.dnd....this is preferred
i need to drag one of the labels to someother location on the panel
drag n drop action should be Move
ie when i drag a label it should be removed from the current location n placed in the new location
and i should have the shadow the label following the drag
i can have as many labels as i want...... any code references should help

I agree. Here's the link:
subject: dragging Jlabel
It's not a secret anymore!