void setComponentsSize(int w, int h)
private void setComponentsSize(int w, int h)
    void setComponentsSize(int w, int h)    {        Dimension d = new Dimension(w, h);        layeredPane.setPreferredSize(d);        layeredPane.setSize(d);        browserCanvas.setPreferredSize(d);        browserCanvas.setSize(d);    }