This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
I have a JComboBox and I fill it with a custom-made object (String name, Long rowid). The JComboBox nicely shows the value returned by my toString method, but when I change the selection, no action event is thrown.. If I fill the jcombobox with simple Strings, all works well... Is there another method I need? Or do I need to write my own listcellrenderer?
posted 12 years ago
My equals method was incorrect.. it returned true too easy.. so the different items in the JComboBox are not recognized as different items