• Post Reply Bookmark Topic Watch Topic
  • New Topic

Automatic Selectio for JList

 
Qusay Jaafar
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
How can I update the selection of a (SINGLE_SELECTION) JList automatically when scrolling up or down
(for the next or previous item)?
thanks
Qusay
 
Rene Liebmann
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
have you tried setSelectedIndex()???
Rene
 
Qusay Jaafar
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
What I meant is when I click the arrows list, up or down, the next displayed item will be automatically selected.
I know setSelectedIndex(), and I am sure I need it, but what can I do to use it?
thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!