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 Android Security Essentials Live Lessons this week in the Android 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
 
 
subject: Handling keyboard event in JComboBox without making it editable
 
Similar Threads
Help File Focus Issue
Textfield/Combobox with auto complete feature!
question on editable combobox on Swing
jcombobox trouble
JComboBox internals