+ 1
Can a button preform multiple actions
2 ответов
+ 11
Yes.
+ 1
certainly. I made a button in Java today that allows me to change the time limit on a program I wrote to help my kid with Multiplication.
When I put in the password and a new time limit and hit the button it resets everything, changes the time limit, and writes it to a save file so next time the program is opened the time limit is loaded.
As for having 1 button do different things depending on situation instead of doing a bunch at once, yea you could do that as well.