{ contentPane = p; getLayeredPane().add(contentPane, JLayeredPane.FRAME_CONTENT_LAYER); }
{ if (p == null) throw new IllegalComponentStateException ("cannot " + "have a null content pane"); else { if (contentPane != null && contentPane.getParent() == layeredPane) layeredPane.remove(contentPane); contentPane = p; getLayeredPane().add(contentPane, JLayeredPane.FRAME_CONTENT_LAYER); } }
    public void setContentPane(Container p)    {	contentPane = p;    	getLayeredPane().add(contentPane, JLayeredPane.FRAME_CONTENT_LAYER);    }