1

我正在从带有 & 符号的属性文件中打印一个标签,即,我想将标签打印为“ sale & care ”,但 & & 符号不会出现在 Swing 屏幕上。我是 Swing 的新手。当我以这种方式“销售和护理”时,系统会挂起。

属性文件中的键值结构如下所示:saleandcare.label = sale & care

4

1 回答 1

1

尝试这个

saleandcare.label = <html>sale &amp care</html>

代替

saleandcare.label = sale & care

希望能帮助到你

于 2013-03-26T06:48:33.447 回答