user2255507
user2255507

Reputation:

Jlabel color change

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);

Upvotes: 34

Views: 78562

Answers (1)

Abdelrahman Wahdan
Abdelrahman Wahdan

Reputation: 2065

Simply the code is

jLabel1.setForeground(Color.red);

Upvotes: 67

Related Questions