问题描述:

I tried to change the color of a jlabel in java netbeans

I need a code to change the jLabel color

Like:

JLabel.SetColor(Color.RED);

网友答案:

Simply the code is

jLabel1.setForeground(Color.red);
相关阅读:
Top