Java: Concatenating Text in a JTextbox using JButtons?
Joined: Mar 12, 2009
I am stuck on Java. I have a JPasswordField, and I need to know how to solve this scenario. If I press JButtons on my box, they should be concatenated onto the textbox. What if I had JButtons named 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', and 'J'. How would I enter the JButtons to form a character password string such as 'C','H','A','A'? Can someone provide with the code to solve my problem? Sincerely, I do not have much time left on my hands and I need an answer ASAP.