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.
I was wondering if anyone oculd tell me if there was a way to assign values to combo box items so that when the user selects an item I can immediately reference the numeric value of the item. Like in html where you write: <select> <option value="12345">Option A</option> <option value="67890">Option B</option> </select> I know how to read the item text or selected index and then use a conditional statement but that seems like a lot of unnecessary work. Thanks.