wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Handling keyboard event in JComboBox without making it editable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Handling keyboard event in JComboBox without making it editable" Watch "Handling keyboard event in JComboBox without making it editable" New topic
Author

Handling keyboard event in JComboBox without making it editable

Sandeep Ghosh
Ranch Hand

Joined: Jan 23, 2002
Posts: 145
Hi Friends,
I have a JCombobox and I would like to call some method if user press some key when it has focus. I know it is possible to work with keyListener if I make combobox editable.
Problem is I couldn’t make combobox editable.
Is there any way to handle keyboard event in combobox without making it editable
Thanks in adv.
Sonu
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Handling keyboard event in JComboBox without making it editable