what is easier using jbuttons or drawing squares and using them as buttons?
Posted on 2007-03-19
I need to write a program for class that allows the user to press buttons that will display coins to the screen and add time to a parking meter
I have the coins figured out from an earlier project but I was wondering about the button my instructor had mentioned just drawing squares on the screen, but wouldn't it be easier to use jbuttons?
so essentially the actions necessary would be if you press the quarter button it draws a quarter on the screen and adds 5 minutes to the meter
if you press te dime button it draws a dime and adds 2 minutes
the meter will be a semi cirlce with a line pinting to the time remaining.
thanks for any help you can provide. I can provide what code I have written if that will help to make a decision.