JList Scrollbar -- keep is at bottom
I am using a JList to display a list of messages. When I add messages to the bottom of the list I would like the JList to keep displaying the end of the list. However, it's default is to remain in the same location as message are added. How do I change this?
If I have to move the scrollbar programmatically when a new message is added, I would only want to do this if the current last message is display. This way if the user is looking at an old message I don't move it off the screen. How would this be done?

