I\'ve got the next code:
listModel = new DefaultListModel();
listModel.addElement(dateFormat.format(new Date()) + \": Msg1\");
messageList = new
To auto scroll I am using a very simple concept of static variable and list.makeVisible(int index)
public class autoScrollExample
{
static int index=0;
private void someFunction()
/*
*
*/
list1.add("element1");
list1.makeVisible(index++);
/*
*
*/
private void someOtherFunction()
/*
*
*/
list1.add("element2");
list1.makeVisible(index++);
/*
*
*/
}