Alright, so I would like to do this: Make parts of a JTextArea non editable (not the whole JTextArea!)
But on a JTextPane instead of a JTextArea, which does not seem to be possible using a DocumentFilter (?).
I tried the above solution on a JTextArea, and it works wonders. But I just can't find anything about how to do this on a JTextPane (if at all possible).
Well I did find this post: Adding text to a JTextPane without having it editable by the user?
But that's not quite what I'm looking for - I need my JTextPane to behave like a command prompt, like the JTextArea in the first link.
Any help would be greatly appreciated, thanks!