desktop.add( panel, 0 );
desktop.add( panel, INTEGER_MAX_VALUE );
        public void adjust( Component owner, Component contents, int x, int y ) {            panel.setVisible( false );            desktop.add( panel, 0 );            panel.removeAll();            panel.add( contents, BorderLayout.CENTER );            if ( contents instanceof JComponent ) {                JComponent jComponent = (JComponent) contents;                jComponent.setDoubleBuffered( false );            }            panel.setSize( panel.getPreferredSize() );            y = Math.min( y, desktop.getHeight() - panel.getHeight() );            x = Math.min( x, desktop.getWidth() - panel.getWidth() );            panel.setLocation( x, y );            contents.invalidate();            panel.validate();        }