sojamo/drop / DropEvent / text( )

name
text ( )
description
when dropping text onto the applet you can access the text with the getText() method. 
+Examples
/**
 * basic demonstration of dragging text into the sketch.
 * code by andreas schlegel. http://www.sojamo.de/libraries/drop
*/
import sojamo.drop.*;

SDrop drop;

void setup() {
  size(400,400);
  frameRate(30);
  drop = new SDrop(this);
}

void draw() {
  background(0);
}


void dropEvent(DropEvent theDropEvent) {
  // drag some text from e.g. a text editor into 
  // the sketch.
  println(theDropEvent.text());
}

Syntax
text();


Returns
String
Usage
Web & Application
Related