import ctext.*; CText ctext; CTextInput textInput; void setup() { size(300, 300); textInput = new CTextInput(this); ctext = new CText(this, "input: ", 145, 145); } void draw() { background(200); textInput.draw(); ctext.draw(); } // called when 'enter' is typed void onTextInput(String input) { ctext.setText("input: '" + input + "'"); }