Quote:
Originally Posted by jdruwe
Ok i will try this on another forum they suggested this "Look at using a JPanel as an area to draw on. Override the paintComponent method and draw your shapes there."
|
Yes, a draw would also be fine, but it just comes down to what you need.
If the game style is like that of say minesweeper, or tic-tac-toe then a jtable or matrix of buttons, panels, etc, make the most sense. If its moving something from 0,0 to 10,2 then drawing may make more sense.
End result you can do either with both approaches. I assumed that a matrix of components made more sense since I thought that the Array is a requirement for landscape. If its just to track coordinate, then I'd say that drawing will be easier.