If I understand the requirements correctly, implement an actionListener as you have (more examples and explanations here: How to Write an Action Listener (The Java™ Tutorials > Creating a GUI With...
Type: Posts; User: copeg
If I understand the requirements correctly, implement an actionListener as you have (more examples and explanations here: How to Write an Action Listener (The Java™ Tutorials > Creating a GUI With...
You mention errors, but post no code or description of said errors - without which leaves us only guessing at what could be the problem. Please post a short piece of code that demonstrates the...