开发者

Mutli line label on java 1.2

I am working on a application that runs on esmertec jbed jvm which is equivalent to Java 1.2 (without swing classes).

We have requirement for some multi-line labels in our application. Does anyone know of any existing component that will do this?

I have a good idea of how to write one myself but开发者_如何学C if there is one available already I would rather use that to save a bit of time.

EDIT I've tried using html components in the text before and it does not work.


You can use HTML in JLabels. To use it, your text has to start with .

Set your text to "This is
a multi-line string" and it should work.

See Swing Tutorial: JLabel and Multiline label (HTML) for more information.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜