Hi,
I have a Jbutton with some dynamic text (that mean that i don't know how long will it), and i wish that in spite of being too long, there will not be some "..." appears. I want that the text be divided into several lines ....
See this ascii draw
I have ----------------
| |
|Hi this is ...|
| |
----------------
I want ----------------
|Hi this is |
|an example |
| |
----------------
Thx
kevinc - 24 Nov 2003 22:46 GMT
Use HTML to render your label
> Hi,
>
[quoted text clipped - 15 lines]
>
> Thx
Alex Hunsley - 25 Nov 2003 14:07 GMT
> Use HTML to render your label
Ah! He's right, I'd forgotten about that possibility.
That very link that I posted before has an addendum at the bottom about
using html...
alex
Nosnos - 26 Nov 2003 21:42 GMT
> Use HTML to render your label
I can't, because I don't know which string will fit my button .... (so do'nt
know where to place my <br>)
Nosnos - 26 Nov 2003 22:40 GMT
> > Use HTML to render your label
> I can't, because I don't know which string will fit my button .... (so do'nt
> know where to place my <br>)
Sorry you right, with HTML render, text are automatically wrapping with
multiline support
Thx
Alex Hunsley - 25 Nov 2003 12:49 GMT
> Hi,
>
[quoted text clipped - 15 lines]
>
> Thx
Google is your friend.
http://www.javaworld.com/javaworld/javaqa/2000-03/01-qa-button.html