+ 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?

14th May 2017, 2:08 AM
Xander A.
Xander A. - avatar
3 Answers
+ 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.
14th May 2017, 2:30 AM
Jim
Jim - avatar
0
@Jim I am doing that lol. I am using functions that aren't in the main function.
14th May 2017, 6:41 AM
Xander A.
Xander A. - avatar
0
And I know the API
14th May 2017, 6:41 AM
Xander A.
Xander A. - avatar