• Post Reply Bookmark Topic Watch Topic
  • New Topic

question on editable combobox on Swing

 
netanel weinberg
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,

I have some question on Swing's editable combox option.
The question is if there is an option to make the combobox editable but editable only for options that are in in the list of options that already have been added to the combox list of options. i want to use the keyboard as filter to unrelevant options.

10x ahead,
netanel
 
clio katz
Ranch Hand
Posts: 101
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sounds like it requires a 'roll-your-own' solution..


what about adding a keylistener that matches input to items in the combo data model, suppresses non-matches...? (a variation on auto-complete fn)
 
Paper has not yet been outlawed – so let your Java Swing application print with wild abandon: JPDF
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!