|
-
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks