Forums Register Login

Click on button then a second button

+Pie Number of slices to send: Send
So far I can create the buttons, but I can only achieve one button click at a time. I want to be able to click one button and click on a second button; each button will hide a picture then I will need to compare the pics . I am probably not explaining it clearly however this example in this link will give you a more precise idea. http://www.usboomers.com/game/concentration.htm
this is the code I have so far.
Any pointer is appreciated
Thanks


+Pie Number of slices to send: Send
+Pie Number of slices to send: Send
> I am probably not explaining it clearly

agreed

looks like what you really want to do is
1) click the first button and set its icon
2) click the second button, also setting its icon, and starting a timer
3) timer checks if icons are the same, if not, after a delay, both icons are set to null
What's that smell? I think this tiny ad may have stepped in something.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1085 times.
Similar Threads
Dual Program (Applet & Application) : Need to know how to improve in Applet ways only!
Out of bound on removeRow
MultiDimenaional Array sort
Building Array with jButton
Java Beginner
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 05:12:54.