I promise that if you can't tell whether something is correct, neither can we. What does it do? Does it do what you expect?
If you want more help, you'll have to provide an SSCCE that...
Type: Posts; User: KevinWorkman
I promise that if you can't tell whether something is correct, neither can we. What does it do? Does it do what you expect?
If you want more help, you'll have to provide an SSCCE that...
Which part of this are you having trouble with? Recommended reading: How to Write an Action Listener (The Java™ Tutorials > Creating a GUI With JFC/Swing > Writing Event Listeners)