34

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);
Radiodef
  • 37,180
  • 14
  • 90
  • 125

1 Answers1

67

Simply the code is

jLabel1.setForeground(Color.red);
Abdelrahman Wahdan
  • 2,056
  • 4
  • 36
  • 43