|
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.
|