So I created a text-based version of the game mastermind. If you are not familiar with it, here is a link to a pre-existing java game: http://www.irt.org/games/js/mind/
What I want to do now, is to develop a GUI for it. So I downloaded NetBeans, and created a UI for it. Before I start what I believe will be a difficult task (adding functionality to the UI - I have never done this before), I have a question or two:
First, here is the UI that I have created:
Now, the white boxes that you see are text boxes...
First question: Is it possible to click on a text box and, each time I click on it, the background color changes (looping through six colors)?
Second question: Is there a way to disable a Panel? Or, if not, to disable text boxes and buttons?
Third question: If I cannot achieve that which is presented in the first question, I will simply have the user type in the first letter of each of the six colors, i.e. R,O,Y,G,B,P into the text boxes. Can I limit the length of the text boxes to 1 character?
Thanks for your help guys, I feel like this will be tough...