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 Combo box focus problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Combo box focus problem" Watch "Combo box focus problem" New topic

Combo box focus problem

Abhijeet Roy

Joined: Jul 30, 2003
Posts: 3
Hello All
I have an editable JCombobox item on my GUI. I have a JLabel for the combo box. The label has shortcut key. But in Windows, the shortcut key does not bring focus to the combo box. If I make the combo box un-ediatble, the shortcut key works. Any ideas on how I can make it work with an editable combo box, in Windows. Here is part of the code...
private JComboBox jCmbMachines = new JComboBox();
private JLabel jLblServer = new JLabel();
VIJAY Yadlapati
Ranch Hand

Joined: Aug 04, 2003
Posts: 175
Yes. When JCombobox is editable, focus first goes to the ScrollButton.
VIJAY Yadlapati
Ranch Hand

Joined: Aug 04, 2003
Posts: 175
Yes when ComboBox is editable, focus first goes to Combo-Button.
I agree. Here's the link:
subject: Combo box focus problem
It's not a secret anymore!