Hello everyone,
I am still working on my battleships project and have been doing some research into how i am going to implement it. I have been working with the idea of having a 2d grid of JButtons and have been looking into the graphics tutorials on the sun wesite but i have been advised that i would not need any of this (such as AlphaComposite) to display and change the display of the sea, ships etc. If so, does anyone have any ideas how to display the images, as in, is there a way of having the images appear in the JButtons themselves?And then change them?
Thanks a million,
Ragaman
I am still working on my battleships project and have been doing some research into how i am going to implement it. I have been working with the idea of having a 2d grid of JButtons and have been looking into the graphics tutorials on the sun wesite but i have been advised that i would not need any of this (such as AlphaComposite) to display and change the display of the sea, ships etc. If so, does anyone have any ideas how to display the images, as in, is there a way of having the images appear in the JButtons themselves?And then change them?
Thanks a million,
Ragaman
Comment