After a while of trying to get this to work I have managed to do it. Thankyou for your post as ultimately that helped fix the problem. I had assigned a BorderLayou position for the new panel but forgot to do that for the other one.