Text field positioning

edited October 2013 in How To...

Is there a way to assign a location to a text field? I've established it above void setup() and put add(textField); in the void setup() and have imported the java.awt.*; Where ever I try and put co-ordinates or a translation; it either doesn't work at all but the rest of the code runs fine, an error pops up in the red banner at the bottom or it shows up but in the wrong place.

Thanks so much for any help!

Answers

  • Answer ✓

    In general, you cannot use AWT components in Processing sketches, because of threading issues.

    If you need GUI components, use one of the GUI libraries available.

Sign In or Register to comment.