Layout that allows overlaping components

I posted this in the general forum, I didn't know there was a swing forum:

I want to implement some kind of swing component, as of right now I'm using a JPane; and painting an image on it, to create tiles of a game board.

The problem is the tiles aren't square and I don't know how to allow the JPanels or JButtons or whatever component is easiest, to overlap in the places i need them to.

Here is an image of the type of tiles I want to use.

http://home.insightbb.com/~twilightimp/current_map.jpg

Does anyone have any ideas?

Do you think using a JLayeredPane to house all my tiles in would work, with the z-component increasing every row from the middle row?

thanks

Message was edited by:

z0isch

[762 byte] By [z0ischa] at [2007-11-26 16:10:11]
# 1
Look at javax.swing.JLayeredPane
es5f2000a at 2007-7-8 22:32:33 > top of Java-index,Desktop,Core GUI APIs...
# 2
I got it working with JButtons and a JLayeredPane.=D
z0ischa at 2007-7-8 22:32:33 > top of Java-index,Desktop,Core GUI APIs...