ListBox items in colorist Select color Index value Macenta Cyan 0 Magenta Red 1 Can 日|ue Green 2 Red 3 Blue 4 Green Cancel OK The getselectedIndex method returns the index value of the selected choice C 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 6-21© 2000 McGraw-Hill Introduction to Object-Oriented Programming with Java--Wu Chapter 6 - 21 ListBox – Items in colorList The getSelectedIndex method returns the index value of the selected choice