aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Drag and Drop in Applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Drag and Drop in Applet" Watch "Drag and Drop in Applet" New topic
Author

Drag and Drop in Applet

V Vattikuti
Greenhorn

Joined: Apr 25, 2003
Posts: 5
Is it possible to do Drag and Drop of Graphical Components in an Applet?
Amy Phillips
Ranch Hand

Joined: Apr 02, 2003
Posts: 280
It is and fairly easy too you just need to determine if the use has clicked on the component and then plot the new position by locating the new cursor position and repainting.
[ April 25, 2003: Message edited by: Amy Phillips ]
V Vattikuti
Greenhorn

Joined: Apr 25, 2003
Posts: 5
im sorry, actually what i wanted to ask was, i have applet1 displayed in browser1, then i have applet2 displayed in browser2, can i drag and drop any component(textfiled,button) ,line or rectangle etc...from applet1 to applet2.
could anyone pls let me know, any help is appreciated.
thanx in advance.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Drag and Drop in Applet