• Post Reply Bookmark Topic Watch Topic
  • New Topic

JComboBox again

 
David Garratt
Ranch Hand
Posts: 213
Eclipse IDE Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want my combo box field to display a code selected by a user. However if the user displays the drop down list I would like the list to contain a code and a description. This is mainly due to the fact that the description can be quite long and I don't want a huge field on the screen.

Is this possible ?

Dave
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Swing forum.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
perhaps displaying the description as a tooltip might work

something like this

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!