File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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
 
Similar Threads
JComboBox internals
Textfield/Combobox with auto complete feature!
Help File Focus Issue
jcombobox trouble
question on editable combobox on Swing