Putting a JPanel inside a JLayeredPane
I'm attempting to put an 'internal' JPanel into a JLayeredPane that is all in another 'main' JPanel.
My internal JPanel will not stay centered on my JLayeredPane.
I have done the setBounds() method on the JLayeredPane, the setSize() and all sorts of other methods, but they don't seem to effect the position of my internal JPanel.
The only thing that effects the positioning of the internal JPanel is changing the Dimensions of the setPreferredSize() method invoked on the JLayeredPane.
Also, if the window is maximazed, the image painted on the internal JPanel will move to the center, but the main JPanel will stay in the top left hand corner.
Does anyone have any ideas what is going on? I'm getting very frustrated!!!
Thanks

