0
ActionListener for a Jbutton
How we can set an ActionListener for a Jbutton with icon ?
3 ответов
+ 1
Maybe this helps you:
https://stackoverflow.com/questions/4801386/how-do-i-add-an-image-to-a-jbutton
0
Hello Zahra
Your class can implement an actionlistener. Or you can use anomymous classes.
https://stackoverflow.com/questions/284899/how-do-you-add-an-actionlistener-onto-a-jbutton-in-java
0
Yes I know that when I add a text to a JButton
But when I add an image to a JButton how I can do that?