This week's book giveaway is in the Cloud/Virtualizaton forum.
We're giving away four copies of Mesos in Action and have Roger Ignazio on-line!
See this thread for details.
Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jcombobox help

 
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
Pie
Posts: 20527
54
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: 2580
9
  • 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