【发布时间】:2014-03-14 13:13:11
【问题描述】:
这是我的代码:
JLabel JL_Output = new JLabel(Reponse);
JL_Output.setBorder(BorderFactory.createTitledBorder("Output: "));
JL_Output.setPreferredSize(new Dimension(450, 175));
JL_Output.setBackground(Color.red);
所以我的问题是我的响应字符串太长而无法在一行中查看。 所以我想使用带有 /br nut 的 html 我无法集成这些应答器,因为我无法在字符串中“输入”:/
我想显示 4 行,像这样 响应值:
Enter the angle offset
Units : [degrees]
Range : [-090<+090]
Current : [+000] >> ERROR
【问题讨论】:
-
是否在字符串中使用
\n来表示新行? -
不幸的是,我无法更改收到的回复:/
标签: java html string split jlabel