I\'m currently writing a simple chat in Java and currently I\'m stuck on this problem: I want my output JTextPane to behave like you would expect it to from a good chat, ie
JScrollBar has getValue() method. Just warp it in SwingUtilities.invokeLater() to be called after text appending.