JLabel label = new JLabel("<html><font color=blue>蓝色文字</font>");
text.setForeground(Color.BLUE);
text.setText("文字"));
JLabel label = new JLabel("<html><font color=blue>蓝色文字</font>");
text.setForeground(Color.BLUE);
text.setText("文字"));

被折叠的 条评论
为什么被折叠?