I'm sorry about not being clearer about what components I was using...

Yes, it was a checkbox and this code fixed it!! Thank you so much, keang!!!


For anyone else looking at this thread: Since I am using Netbeans GUI creator, I did not have to declare the JCheckBox component so it was one line of code I had to rewrite.