0

I just wanted a code where I can display partial text and the remaining text by the tool tip using 'JTextPane'.

Eg: If text is 'Java is re useable'. I want it to display 'Java is ...' Then I want to add a tooltip to display the rest of the data.

Please do let me know how it is done.

Thanks.

4

1 回答 1

2

JLabel这是当前宽度小于其首选大小的 a 的默认行为。您可以通过调整此示例中的封闭框架的大小来研究效果,该框架覆盖layoutCL()以显示文本布局状态。

图片

于 2012-10-22T16:18:19.050 回答