Dam*_*mir 2 java swing jlabel
如何在JLabel内部的两行中写入文本(它不起作用\n)?
\n
Cos*_*lis 7
试着这样做: JLabel myLabel = new JLabel("<html>this is line1<br>this is line2</html>");
JLabel myLabel = new JLabel("<html>this is line1<br>this is line2</html>");
dog*_*ane 6
JLabel label = new JLabel("<html>Two<br/>lines</html>");
请参见如何在Swing组件中使用HTML
归档时间:
14 年,7 月 前
查看次数:
6263 次
最近记录:
10 年 前