Reputation:
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
Reputation: 2065
Simply the code is
jLabel1.setForeground(Color.red);
Upvotes: 67