Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Generate personal button with java (textual adventure building)

 
Ben Doe
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I've got two questions :

I use this script, send "word" for receive "answer" :


-> But i'd like receive this button (with his script) instead of "answer" :


-> Second question, is it also possible to define the button that will appear depending on what you will write in the text area ?

Thanks for your help.
 
Ashwini Kashyap
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To answer to your questions,
1) Please check the difference between == and ===
2) Yes, that is possible to define the button that will appear depending on what is written in the text area. All you can do is, collect dynamic data entered by the user and then assign it to button text.

Hope this helps.

Thanks,
Ashwini Kashyap | www.infocepts.com
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic