View Single Post
  #2 (permalink)  
Old 08-06-2007, 09:03 PM
hardwired hardwired is offline
Senior Member
 
Join Date: Jul 2007
Posts: 1,189
hardwired is on a distinguished road
Here's an idea. Try drawing your grid in the paintComponent method of a JPanel, the sea, and drawing images of the ships in the grid cells. Keep a boolean array that matches the grid structure. You can set/change the boolean values for availability of targets. Use keyboard navigation to maneuver your ship among the cells, to rotate and to fire.
Reply With Quote