Alternatives
Members may post updates or alternatives to this current article in order to show different
approaches or add new features.
Instead of JButtons you need to create JLabels. Then add the corresponding image to the JLabel. A mouse Listener on the JLabel/Image will capture the mouse event of clicking on it.How to use Icons[^]How to Write a Mouse Listener[^]A bit more OOP would help though.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.