JList: Scroll to Selected Item



I'm using Java 1.4.2 and I've tried searching for this and can't find it,
but I'm sure I saw a method for a JList to scroll to the selected item.

There are times a JList (in a JScrollPane) is reloaded. On some platforms,
apparently, when I reload it, even though I make sure the same item stays
selected, users report that the list then resets to show the top of the
list only.

Maybe I'm mixing things up, but I was sure I saw something like
scrollToSelected() for a JList or JScrollPane, but I can't find it in the
API index and couldn't find it in a search. Is it under a different
wording or is there another method that scrolls a JList to show the
selected item?

Thanks!

Hal
.



Relevant Pages

  • Re: Mouse Wheel Scroll Speed Changes when loading game rooms
    ... You could find a reference to the three-lines scroll in the registry, ... I continued searching with F3 till I found what I ... You can also change the default for double-clicking a .reg file from ...
    (microsoft.public.games.zone)
  • Re: JList: Scroll to Selected Item
    ... Hal Vaughan wrote: ... but I'm sure I saw a method for a JList to scroll to the selected item. ... There are times a JList (in a JScrollPane) is reloaded. ... apparently, when I reload it, even though I make sure the same item stays ...
    (comp.lang.java.gui)
  • Re: JList: Scroll to Selected Item
    ... Knute Johnson wrote: ... but I'm sure I saw a method for a JList to scroll to the selected item. ... There are times a JList (in a JScrollPane) is reloaded. ... platforms, apparently, when I reload it, even though I make sure the same ...
    (comp.lang.java.gui)
  • Re: Angband 3.1.0 beta released
    ... and my weapon arm is still weightless. ... as Recall/TL down +2 or 3 levels. ... I started with a scroll of recall, for instant diving, most fun. ... to searching, it should be +3% searching, or whatever. ...
    (rec.games.roguelike.angband)
  • Re: OT - trivial programming language
    ... > Scrolling depends on several things and off course you can scroll back ... much the de facto standard pager on most unices these days we can reasonibly ... searching backwards. ... Same as in an editor. ...
    (Debian-User)