|
Java™ by example!
|
|
|
How do I put an Image on a JButton?
Check out the API! You'll see that there is a constructor taking an Icon object as parameter. Here's an example showing two buttons with the following animated gifs on them:
Main.java:
Further Information
Author of answer: Joris Van den Bogaert
Comments
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|