This site requires JavaScript, please enable it in your browser!
Greenfoot back
craigsapp6395
craigsapp6395 wrote ...

2015/2/11

Accepting user input

craigsapp6395 craigsapp6395

2015/2/11

#
I am able to accept user input into a textbar and was even able to get two textbars to take in text. What I want to do is store this data into a list/ArrayList and then clear the screen so it would take the same type of data and store the next object to a list.....I am using the act() method in the world subclass but I am having trouble. I want to have player objects with a few fields and the screen to continuously accept the fields, then create an object, then add it to the list. Thanks for any help with this issue.
danpost danpost

2015/2/11

#
What type of data needs stored? Is there a specific format for this data? Are you able to create a proper List object or is that what you are having problems with? Of course, all these questions might be answered by just showing what you tried -- in code.
You need to login to post a reply.