You could use html in your label text as follows: frame.add(new JLabel("<html>Text color: <font color='red'>red</font></html>"));.
確定! 回上一頁