Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Handling keyboard event in JComboBox without making it editable

 
Sandeep Ghosh
Ranch Hand
Posts: 145
  • 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