I have:
JButton b1 = new JButton();
b1.setForeground(Color.BLUE);
the button labelled b1 turns blue and all is working,
However is it possible to use some function like:
String ButtonColor = "BLUE";
b1.setForeground(Color.(ButtonColor.getText()));
I ask this because i want to get the colour from a different class..
Any help appreciated thanks!