variable selectedTextColor in JTextPane
I am wondering if Java supports setting the selectedTextColor in a JTextPane to more that just one color. For example, if I select/highlight 2 words, the text color of one word is black and the other is red, I want the text color when highlighted to be it's actual color. But if I were to set the selectedTextColor to red (textPane.setSelectedTextColor(Color.RED)) then both words would be red when selected. Is there any way to have the black word stay black and the red word stay red even when highlighted? Or is this something that Java does not support? Thanks!
Re: variable selectedTextColor in JTextPane