File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Handling keyboard event in JComboBox without making it editable

 
Sandeep Ghosh
Ranch Hand
Posts: 145
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic