Java Swing : set position relatively to a background

I'm working on a board game for a school project, and the board is something like this :

I'm to create tiles for each card, and I'm not sure how to position those in a way that they "fit" the background image.

I was going to use absolute positioning and fixed size for each card JPanel, but I thought it would be a little ugly.

Is there a way to use something like a GridLayout while remaining able to set the position of the JPanel with the layout and it's size ? (and, margins between elements as well ?).

This seems a bit tricky and i'm sure there's plenty of people that probably already encountered the issue.

Thanks in advance for your help