Hey guys
I recent wrote the deal or no deal game in Java for fun. It currently operates using a Command driven interface where users input numbers based on textual feedback.
My aim is to develop this into a full GUI interface, however, I have not met GUI's yet in my computer science course. Whilst I have some basic knowledge of how they work and the Syntax they use, I still need help.
What I want to do is create 21 buttons and assign each a value which is determined by a accessor. These numbers will range from 1 to 22.
I then also want for the button text to change once it has been clicked (through an event listener or similar). This will then start a new turn.
This is the basic functionality I require. I have looked on various different websites but it doesn't seem to help.
Figured I'd ask here.
Please don't ask for the GUI code I've already written as it's incomprehensive and not very good. Also assume the accessor produces an integer value between 1 and 22 as this is not important to the task in hand.
Thank you in advance