Battleships game

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ragaman123
    New Member
    • Nov 2006
    • 13

    #1

    Battleships game

    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
  • mharrison
    New Member
    • Nov 2006
    • 26

    #2
    Hi again,

    Have a look at this:

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

    It may help

    Comment

    • ragaman123
      New Member
      • Nov 2006
      • 13

      #3
      Thanks again man, that site is quite useful.

      Cheers,

      Ragaman

      Comment

      Working...