File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes jcombobox help Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "jcombobox help" Watch "jcombobox help" New topic
Author

jcombobox help

Carl John
Ranch Hand

Joined: Jun 14, 2010
Posts: 47

i'm using jcombo box in my application...

i want the end user to use only keyboard(instead of using mouse ).. so i need to display a mnenomic to use the jcombolbox like Jbutton..

please guide me to do this...


CJohn
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19755
    
  20

If I tab into a JComboBox, then press down, it opens up on my system. You can use a JLabel, with setDisplayedMnemonic and setLabelFor, to give focus to the combo box if that's what you want.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2213
    
    7
When focus is on the combo box, you use the down arrow to display the drop down list.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: jcombobox help