Skip to main content

Corresponding Value with Displayed Items in JList or JComboBox

No replies
vinaykrsharma1986
Offline
Joined: 2008-06-20

Hello There, I want to add Items in JList and JComboBox with Integer Value corresponds with Displayed Items in JList or JComboBox. Please help me create this.

When JComboBox Items added Like Below :-

Value Displayed Items
1 -> Item One
2 -> Item Two
3 -> Item Three
4 -> Item Four
5 -> Item Five

Thanks... :)