Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Swing / AWT / SWT and the fly likes JEditorPane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JEditorPane" Watch "JEditorPane" New topic
Author

JEditorPane

Felipe Walker
Ranch Hand

Joined: Sep 23, 2003
Posts: 41
Is there a way to change the color of only the selected text in the JEditorPane. I have user selectedtextColor and selectionColor, but neither changes the actual text color when it is no longer highlighted.
 
rocket mass heater kickstarter
 
subject: JEditorPane