Re: JAVA TEXT AREA GUI problem
- From: "KL" <li.kelly@xxxxxxxxx>
- Date: 23 Sep 2006 21:39:29 -0700
Thank You.
Andrew Thompson wrote:
KL wrote:
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.
.
- References:
- Re: JAVA TEXT AREA GUI problem
- From: Andrew Thompson
- Re: JAVA TEXT AREA GUI problem
- Prev by Date: Re: JAVA TEXT AREA GUI problem
- Next by Date: Re: JAVA TEXT AREA GUI problem
- Previous by thread: Re: JAVA TEXT AREA GUI problem
- Next by thread: Re: JAVA TEXT AREA GUI problem
- Index(es):
Relevant Pages
|
|