> Hi
>
[quoted text clipped - 7 lines]
>
> list.ensureIndexIsVisibile(model.size()-1);
when exactly are you doing this? If on start-up of your program, make
sure to call the ensure... after the frame is realized (that is after
pack() or setSize()) or wrap the call into a
SwingUtilities.invokeLater(). If you want it after an item is added to
the model, invoke as well - that will ensure that the list has completed
the update of its internal state.
Greetings
Jeanette
Adam - 11 Feb 2004 11:21 GMT
i am adding/removing items to the list dynamically at run time when the user
clicks a button.
i want the last item added to be displayed after it is added.
> > Hi
> >
[quoted text clipped - 17 lines]
> Greetings
> Jeanette