Answer the question
In order to leave comments, you need to log in
How to assign different actionPerformed to it when clicking on one button (Java + NetBeans)?
Hello!
Essence of the question:
It is necessary to perform different actions when pressing the same button.
With actionPerformed - one action can be performed. And you need to make it work like this:
the first click is one action (for example, changing the picture in the jFrame window), the second is the second action (changing to the second picture in the window).
Maybe there is some other event? And is this even possible?
Thank you!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question