Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JCombobox...!!!  RSS feed

 
andrew mcmillan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am creating an object 'record' which holds two string values (lets call them string 'a' and 'b' for now), i create a simple custom model for the JCombobox to use string 'a' as the entry on the combobox list.
but when the user selects an item from the list i want string 'b' to be displayed in the field.
Could someone please tell me how this is done.
many thanks
 
Dirk Schreckmann
Sheriff
Posts: 7023
 
andrew mcmillan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
well yes, many times have i seen these docs and they are no help with my requirements this time.
if anyone knows otherwise please help.
thanks again
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If's or Switch:Case is probably how you are going to have to do it.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!