When inserting comongnets within a JPanel (JFrame -> JDialog -> JTabbedPane -> JPanel) what has to be done to ensure the Componenets do not appear out of position when the screen resolution is switched? In my previous attempts. components positioned within the centre would either appear on the far right or diaappear off screen altogther when screen resolution is changed. How do I prevent this from happening?