+ 2
I have a Problem
I am making an app, and I have a problem with the GUI. I need to make it get a string from a text area in Java, but the thing is the code is before the main(String[] args). I tried importing java.lang.String, but that doesn't work either. Any suggestions?
3 Respuestas
+ 4
Take a look at the API you used to create the GUI. Instead of inputs being in the args, typically GUIs trend to define 'events' to let you know when something changes.
You'll need to find how to catch the events you're interested in and extract the relevant information.
0
@Jim I am doing that lol. I am using functions that aren't in the main function.
0
And I know the API