File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes Using color in a pane Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Using color in a pane" Watch "Using color in a pane" New topic

Using color in a pane

cardwell cupp
Ranch Hand

Joined: Aug 16, 2001
Posts: 66
Is it possible to show different colors of text int a JTextPane/JEditorPane with out using any richtext stuff.
If not, are there any suggestions on how to accomplish this feet?
Paul Stevens
Ranch Hand

Joined: May 17, 2001
Posts: 2823
With HTML.
I agree. Here's the link:
subject: Using color in a pane
It's not a secret anymore!