Adding multiple Canvas problem

Hey all, this is my first post here...
I'm having a problem with Java and adding multiple Canvases, I added my code as an attachment.

The main program is opzetRij.java, the program is supossed to add multiple pieces (eenStuk.java) to the 'opzetRij'. A piece has four sides (eenZijde.java)

The piece (eenStuk.java) is a extended as a Canvas.
The only problem is that when I add multiple pieces the program only shows the last added piece.

I can't figure out what's the problem.. If I use setLayout(null) in the main program and then
setBounds each piece the program doesn't paint them,, but when I put setBackground(Color.green) in paint in the code of the piece (eenStuk.java) and rerun
it,, it still doesn't paint them but it does paint the regions they need to be in green..

I hope you can help

Greets,,
Victor
[916 byte] By [pseudo] at [2007-11-19 6:13:37]
# 1 Re: Adding multiple Canvas problem
Ok,, Pretty stupid,, You know that when you've been working at something for
sooo long and it still doesn't work,, and then bam it hits ya...

When I add the bounds I still give the Canvases their X and Y
Which is obsolete..

Thanks tho ;)
pseudo at 2007-11-10 2:24:40 >