Is there a way to have the text in a JTextPane start at the bottom of the pane and get shifted up the screen instead of down the screen when new text comes in?
I'm trying to create a chat room. I am using a JTextField to pass text into the JTextPane. Everything works as desired except that I can't find any documentation or method that starts adding text to the bottom of a JTextPane instead of the top. I want the most recent line to always be the bottom line.
Is this possible with JTextPane's? I've searched for hours for an answer to this and can't find the solution or figure out how to achieve this.