This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
i populate this combo from database and wrote some code that prints the selected object's id i've this button that deletes the selected item; what happens is that, when i delete several items, suddenly my printlines show repeated ids, say 3 or 4 lines with the very same info and only from one single click. this is problem one; my second problem is that i cant retrieve my last item, because when there's only one left it doesnt print at all, like it wasnt never selected my relevant code (i tried action event and item event):