aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes JComboBox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JComboBox" Watch "JComboBox" New topic
Author

JComboBox

sushma jaggi
Greenhorn

Joined: Mar 10, 2004
Posts: 2
How to set the selected index as first visible index in JComboBox?
Mathews P Srampikal
Ranch Hand

Joined: Nov 26, 2002
Posts: 211
jb.setSelectedIndex(Your Position);


Thanks,
Mathews
sushma jaggi
Greenhorn

Joined: Mar 10, 2004
Posts: 2
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JComboBox