public colours problem
This is probably a really basic question but;
I need to carry out an assignment statement in my applet which is a colour picker. There is a grid of 12 coloured buttons and when you click one I want it to assign that colour to a public colour named current colour. So then I will be able to set the background or text of something else to whatever the current colour is.
The way I did it with numbers was to have a
public int currentnumber at the top and then I used
if (e.getSource()==b1) currentnumber =1;
this is what I want to do only instead of numbers to use colours.
like I said i'm probably missing something really simple but i'd appreciate any help
thanks in advance
-- Android Development Center
-- Cloud Development Project Center
-- HTML5 Development Center
-- Windows Mobile Development Center