This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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
 
Similar Threads
getSelectedIndex
drop down menu
jComboBox
getRowForLocation(...) in JComboBox?
JComboBox Action Issues.