Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JComboBox

 
sushma jaggi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to set the selected index as first visible index in JComboBox?
 
Mathews P Srampikal
Ranch Hand
Posts: 211
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jb.setSelectedIndex(Your Position);
 
sushma jaggi
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What I meant was that if I have a JComboBox displaying Names and if I press S from Key board then the selected name starting with S is shown as the last visible index.I want the selected index to be the first visible index.
Thanks
sushma
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic