How can I display Text strings of different style on different lines of an TextArea.

John Zukowski

The AWT TextArea only supports displaying its text in a single color and single font. To display text in different styles, you can use the Swing JTextPane or JEditorPane (or create your own component).

0 Comments  (click to add your comment)
Comment and Contribute






(Maximum characters: 1200). You have 1200 characters left.