Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jcombobox info  RSS feed

 
kranthi kumar Vaddireddy
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

In my swing application, i'm having a combobox which contains more than 200 items. If i type a letter (ie) 'A' means then items
starting with 'A' alone should show in popup menu...please guide me to do this.
 
Hauke Ingmar Schmidt
Rancher
Posts: 436
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to write a combo box model that can filter and a listener somewhere that listens to the user input. I would go with an editable combo box so the user sees the input he did that influenced the list.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!