String html = "<html> hello </br> <img src = \"/absolute/path/here\" height = \"30\" width =\"40\"/> </html>"; JLabel l = new JLabel(html);
对于图像,我得到的是一个破碎的图像,是否可以将嵌入img标签嵌入JLabel?
编辑:我想在JLabel中添加多个图像,所以我不认为使用ImageIcon会在这里做.
谢谢