doLayout(); repaint(); setVisible(false); show();
    public void adjustDesktopSize(int width, int height) {        setSize(width, height);        doLayout();        repaint();        setVisible(false);        show();    }