> Is anybody know how to create a JAVA TEXT AREA
That is one of ..
- Java text area (generic)
- Java TextArea (AWT)
- Java JTextArea (Swing)
..so please be specific and refrain from SHOUTING at us.
>...with multiple color text
>
> in each line?
Many Swing components are 'HTML aware',
but not JTextArea's .. E.G.
<sscce>
import javax.swing.*;
class HTMLTextArea {
public static void main(String[] args) {
String content =
"<html><body><h1>Ha!</h1><p style='color: red'>Blah...";
JTextArea ta = new JTextArea(content);
JOptionPane.showMessageDialog(null, ta);
JLabel l = new JLabel(content);
JOptionPane.showMessageDialog(null, l);
}
}
<sscce>
Andrew T.
KL - 24 Sep 2006 05:39 GMT
Thank You.
> > Is anybody know how to create a JAVA TEXT AREA
>
[quoted text clipped - 27 lines]
>
> Andrew T.
KL - 24 Sep 2006 05:39 GMT
Thank You.
> > Is anybody know how to create a JAVA TEXT AREA
>
[quoted text clipped - 27 lines]
>
> Andrew T.
kshafi@gmail.com - 25 Sep 2006 14:33 GMT
One work around would be to create multiple "JAVA TEXT AREA" (one for
each line) and color code them as needed.