How to make AWT Button() and use ImageIcon(), Icon()?

AWT is a bit different from Swing.

There’s no constructor button(image), hence your “not working”.

Take a look at Learn how to extend the AWT with your own image buttons to see how to make that image on a AWT button.

Leave a Comment