This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Originally posted by Rick Gentry: Yeah, I had an ItemListener.
Changing the selected item activates itemStateChanged but e.getSource() doesn't return the JComboBox.
Yes it does. But you have to cast it.
Joined: Dec 14, 2002
I got it work, I was declaring the box outside the function but finished declaring it inside. So the box was null when it got to the ItemEvent. So in short I made a stupid mistake that I've made before and I'm sure I'll make again. Thanks for the help though.