要将html放在中
JLabel,您可以使它看起来像这样
JLabel label = new JLabel("<html><yourTagHere><yourOtherTagHere>this is your text</yourOtherTagHere></yourTagHere></html>");
要将html放在中
JLabel,您可以使它看起来像这样
JLabel label = new JLabel("<html><yourTagHere><yourOtherTagHere>this is your text</yourOtherTagHere></yourTagHere></html>");上一篇 如果已重新定义toString方法,如何打印对象的地址
下一篇 File.separator与FileSystem.getSeparator()与System.getProperty(“file.separator”)?