Scrolling JList to Bottom



I believe I'm using the recommended procedure:

model = (DefaultListModel) syslogList.getModel();
.........................................
model.addElement(message);
syslogList.ensureIndexIsVisible(model.getSize()-1);

but the results are very erratic. Is there something else I should be doing?

Thanks
Paul
.