Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jcombobox help  RSS feed

 
Carl John
Ranch Hand
Posts: 47
Eclipse IDE Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm using jcombo box in my application...

i want the end user to use only keyboard(instead of using mouse ).. so i need to display a mnenomic to use the jcombolbox like Jbutton..

please guide me to do this...
 
Rob Spoor
Sheriff
Posts: 20904
81
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I tab into a JComboBox, then press down, it opens up on my system. You can use a JLabel, with setDisplayedMnemonic and setLabelFor, to give focus to the combo box if that's what you want.
 
Rob Camick
Ranch Hand
Posts: 2756
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When focus is on the combo box, you use the down arrow to display the drop down list.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!