Results 1 to 3 of 3
- 07-30-2007, 03:21 PM #1
Member
- Join Date
- Jul 2007
- Posts
- 32
- Rep Power
- 0
- 07-31-2007, 02:15 AM #2
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.
- 08-01-2007, 05:12 PM #3
Member
- Join Date
- Jul 2007
- Posts
- 32
- Rep Power
- 0
Similar Threads
-
How to add a shortcut key from JTextArea
By sukatoa in forum Advanced JavaReplies: 2Last Post: 01-28-2008, 08:39 AM -
JTextArea
By saytri in forum New To JavaReplies: 0Last Post: 01-13-2008, 01:07 AM -
change colors
By calblue in forum New To JavaReplies: 1Last Post: 12-02-2007, 11:52 PM -
Jtextarea and scroll
By ziniestro in forum AWT / SwingReplies: 2Last Post: 06-01-2007, 03:59 PM
Bookmarks