aspose file tools*
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
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Combo box focus problem" Watch "Combo box focus problem" New topic
Author

Combo box focus problem

Abhijeet Roy
Greenhorn

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();
jLblServer.setLabelFor(jCmbMachines);
jLblServer.setDisplayedMnemonic(KeyEvent.VK_E);
jCmbMachines.setEditable(true);
Thanks!
-Roy
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: http://aspose.com/file-tools
 
subject: Combo box focus problem