FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Syntax
(Moderators: fry, REAS)
   Is P5 a drag?
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Is P5 a drag?  (Read 297 times)
skloopy

WWW
Is P5 a drag?
« on: Aug 4th, 2003, 2:01am »

This might seem like an off the wall question.
 
Is it possible in P5 or Java to capture stuff being dragged into the sketch window? For example an image, some text, or a file? Or, is that an OS specific thing? Sun must have thought obout people wanting to do that..
 
fry


WWW
Re: Is P5 a drag?
« Reply #1 on: Aug 4th, 2003, 6:07am »

you can use java's drag and drop api to catch stuff being dropped in. i don't have an example handy, but it's doable.
 
however it won't work in applets, since they're exported as java 1.1 only, which had no drag 'n drop. so you'll have to stick within the environment.
« Last Edit: Aug 4th, 2003, 6:08am by fry »  
Pages: 1 

« Previous topic | Next topic »