I need to make several buttons that would change from red to green and back again. Can anyone give me some ideas on how to do this?
Thanks!
Printable View
I need to make several buttons that would change from red to green and back again. Can anyone give me some ideas on how to do this?
Thanks!
What have you tried? The JButton class has several set methods that could do it.
I have actully just installed the JDK software so I am starting from gound zero. I was hoping to get a nudge in the right direction. I have what I want to do in my head and I'm hoping its easy enough to do for a begginer. I also installed NetBeans. How would you do it?
You need to get familiar with the API doc for the Java classes. Here is link:
Java Platform SE 6
I'd read the API doc for the class I was working with and find a method or methods that look like they would do what I wanted and try them to see what they did.Quote:
How would you do it?