GUIs running in background with G4P
in
Contributed Library Questions
•
2 years ago
hello, I'm using the G4P library, it's great but I'm having a problem with it.
how can I remove the GUIs after I created them?
for example if I create a textfield object within setup()
textfield = new GTextField(this, "example", 230, 260, 90, 10);
this will appear on the screen until the end of the program.
i tried to use the command line
G4P.disableAutoDraw(); within setup()
and call the textfield.draw() function when i want the GUI on my screen
It seemed to work fine but then I noticed the GUIs were running in background
is there a way to solve it? I've seen in the reference there's a command like "remove", but I'm just a beginner, and the reference is written in java...
2