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

2015/7/6

Help with something simple, & something advanced

CanIHasProgram? CanIHasProgram?

2015/7/6

#
first: can you make a text box that you can type input into? second: I need It to detect what Is in the text box. I'm making a sort of search engine, but with only certain keywords, to make sort of passwords that lead to certain areas. However I have not found any way to make a text box so any help is appreciated! :)
danpost danpost

2015/7/6

#
CanIHasProgram? wrote...
can you make a text box that you can type input into?
Quick (and obvious) answer, yes. You can either make use of pre-made classes to accomplish this or create your own system for doing so (which you would need to be a bit knowledgeable in programming to pull off).
I need It to detect what Is in the text box.
I am sure any pre-made system would allow a way to get the text from the box and you would include a way if you made your own. If the entering of the keyword is the only thing allowed at that time, then you might consider using 'swing' components. Check out the page in the java tutorials on creating dialogs.
You need to login to post a reply.