File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes How to set hotkey for 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 "How to set hotkey for jcombobox?" Watch "How to set hotkey for jcombobox?" New topic

How to set hotkey for jcombobox?

Amrit Tiwana

Joined: Jun 03, 2004
Posts: 24
Hi all,

Is it possible to set hotkey for selecting(setting focus on) Jcombobox?

like for menu, we have setMnemonic and for textfield we have setFocusAccelerator

Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
Perhaps a workaround, if you can add a label

I agree. Here's the link:
subject: How to set hotkey for jcombobox?
Similar Threads
JComboBox inside JTreeTable
Show a PopupMenu using a hotkey
Is it possible to attach KeyListener with JComboBox?
Why we dont have JComboBox(ArrayList items)
JComboBox setEditor()