Adding multiple Canvas problem
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

