Scrolling down an awt.List

Posted by nico on Stack Overflow See other posts from Stack Overflow or by nico
Published on 2010-05-29T07:28:34Z Indexed on 2010/05/29 7:32 UTC
Read the original article Hit count: 141

Filed under:
|
|

As from subject, I have an awt.List object. When I add something to the list I would like to scroll it down to show the last inserted object.

For instance:

myList.add("sometext");
myList.select(myList.getItemCount()-1);
myList.showSelectedItem(); // Or something like that

The documentation does not seem to list any method that does something like that, can anybody help please?

© Stack Overflow or respective owner

Related posts about java

Related posts about list