You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:
have access to post topics
communicate privately with other members (PM)
not see advertisements between posts
have the possibility to earn one of our surprises if you are an active member
access many other special features that will be introduced later.
Yes. JTextArea supports only a single foreground color, background color and font. To Have more than this you can work with a StyledDocument in a JTextPane.
For discussion and example code see How to Use Editor Panes and Text Panes, especially the section An Example of Using a Text Pane.