4
votes

I'm looking how can I change the label color on codename one.

I've tried this one but it didn't work at all:

Labelname.getSelectedStyle().setFgColor(ColorUtil.CYAN);

1

1 Answers

8
votes
Label testLabel = new Label("test");
testLabel.getAllStyles.setFgColor(0xff000);

Use above codes . It will change label color