我尝试在Java NetBeans中更改JLabel的颜色。
我需要一段代码来更改JLabel的颜色。
例如:
JLabel.SetColor(Color.RED);
代码很简单
jLabel1.setForeground(Color.red);