I don't know why you're making this so hard. Why not use JTextArea and its append() method?
Type: Posts; User: GregBrannon
I don't know why you're making this so hard. Why not use JTextArea and its append() method?
JTextArea has an insert() method that allows text to be added at the desired index. You could check the source code for the JTextArea insert() method and write something similar for JTextPane, or...