+ 2
About Listener Java
I want to make code that the button should have own value for output. For example; there is a button which is "5" . Then I want to get value 5 on label when I click. Is there any solution?
4 Answers
+ 5
Absolutely, although of course not on the playground. Which gui framework do you use?
+ 5
Okay, Swing then.
This will help you:
https://docs.oracle.com/javase/tutorial/uiswing/events/actionlistener.html
+ 1
I use Eclipse and Swing.
+ 1
Thanks Tashi