For example, if I do
textArea.setText("the first line" + "\n" + "the second line");
I can see two lines.
And I want some strings to become bold.
textArea.setText("<b>" + "BOLD STRING" + "</b>");
doesnt' work. I get:
<b>BOLD STRING</b>
Can you suggest me something?
RichText is useless...I user TextArea just as static filed for
depicting sitring of text. No user format is needed.
Your only solution is to use a RichText Control to have a smart
display or to change your mind and forget about your bold text. Sorry
For you.
Regards.
Romain
http://dismoiou.fr
http://tellmewhere.com
On 17 sep, 12:33, "Serega.Shey...@gmail.com"
http://code.google.com/webtoolkit/documentation/com.google.gwt.user.client.ui.HTML.html
Josh
On Sep 17, 3:33 am, "Serega.Shey...@gmail.com"
On 17 сент, 22:22, Josh Hinman <josh.hin...@gmail.com> wrote:
> Why are you using a TextArea as a static field? Why not use an HTML
> widget?
>
> http://code.google.com/webtoolkit/documentation/com.google.gwt.user.c...
On Sep 18, 1:52 pm, "Serega.Shey...@gmail.com"
.gwt-HTML {
width: 198px;
height: 98px;
border: 1px solid black;
overflow: auto;
}
That will give it a fixed size, thin black border and scroll bars,
just like a text area. Have fun.
Josh
> > > > > depicting sitring of text. No user format is needed.- Hide quoted text -
>
> - Show quoted text -