Scroll the Panel to the bottom

Hey!

I am using a Panel as a “log panel”. My program keeps updating its content and I would like it to be automatically scrolled to the bottom each time.

logPanel.setScrollTop(99999); As suggested by some previous posts doesn’t seem to work.Any suggestions?