setSize(w, h);
windowWidth = w; windowHeight = h;
    private void setWindowSize(int w, int h)    {        Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();        int width = 7*(screenSize.width/10);        int height = 7*(screenSize.height/10);        if (w > width) w = width;        if (h > height) h = height;        setSize(w, h);     }