permaculture playing cards*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 19649
    
  18

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: 2152
    
    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
 
Similar Threads
Instances of a Servlet
What IDE Should I use?
Cookies using Jsp
addAll
UML Modeling Tool