I'm fairly new to java. I have only taken one class and am attempting to use the knowledge in building me a nice chess game.
So far I have some nice JButtons that make my 8x8 grid, colored appropriately with white and black jpgs. The buttons are attached to actionCommands that give a strings based on location on the grid.
I want the buttons color to remain static, adding the chess piece image (transparent background) on top of it. I don't know how to add multiple images to a JButton, if it's even possible. I thought about trying to add a GCanvas, such that I can layer the images one on top of the other.
If I cannot do that with JButtons, can I do it by other means? Can I add actionEvents to things that are not JButtons? Like perhaps just a square shape? Or a jpg?