About Listener Java | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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?

4th May 2018, 7:36 PM
ozgur
4 Answers
+ 5
Absolutely, although of course not on the playground. Which gui framework do you use?
4th May 2018, 7:42 PM
Tashi N
Tashi N - avatar
4th May 2018, 7:46 PM
Tashi N
Tashi N - avatar
+ 1
I use Eclipse and Swing.
4th May 2018, 7:44 PM
ozgur
+ 1
Thanks Tashi
4th May 2018, 7:50 PM
ozgur