By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,032 Members | 825 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,032 IT Pros & Developers. It's quick & easy.

Battleships game

P: 13
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
Nov 20 '06 #1
Share this Question
Share on Google+
2 Replies


P: 26
Hi again,

Have a look at this:

http://www.apl.jhu.edu/~hall/java/Swing-Tutorial/Swing-Tutorial-JButton.html

It may help
Nov 20 '06 #2

P: 13
Thanks again man, that site is quite useful.

Cheers,

Ragaman
Nov 20 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.