Hi
I've set up an array of Jpanels in a grid layout. im trying to insert a graphic into each panel using a loop. i can get the graphic in but it sits in the bottom right of each panel, and i've tried setting the layout and the size but nothing happens.
Is there any way which i can set the graphic to be the same size as the JPanel, so when i resize the window the graphic will resize automaticaly.
Any ideas??
Cheers
I've set up an array of Jpanels in a grid layout. im trying to insert a graphic into each panel using a loop. i can get the graphic in but it sits in the bottom right of each panel, and i've tried setting the layout and the size but nothing happens.
Is there any way which i can set the graphic to be the same size as the JPanel, so when i resize the window the graphic will resize automaticaly.
Any ideas??
Cheers
Comment