I'm coding a game of towers in java. I'm having trouble moving a stack from one button to another.
I have eventlisteners for buttons A and B. If Button A is clicked and then button B is clicked, the value at button A must be added to the value at button B.
<the values are text on the buttons>
How can I achieve this?