Hi all,

I want to code a simple game where the player occupies a position on a grid and can move around the grid using the arrow keys or buttons. I'm working on the grid right now and I'm not sure how best to implement it. I need the grid to be a solid color with a white border around each cell in the grid, and I want to have the option to have 1-2 overlays in each cell (1 overlay to represent the player sprite, 1 overlay to represent an item or what-have-you).

I've been looking at AWT tutorials and I find them really confusing, especially how the different elements are nested in each other. What is the difference between a JPanel and a Container? Should each cell in the grid be a Container? Or is there a better way to implement this?

Thanks in advance! :)