setWidth((int)d.getWidth()); setHeight((int)d.getHeight());
setFieldWidth((int)d.getWidth()); setFieldHeight((int)d.getHeight());
    public void setDimension(Dimension d) {        setWidth((int)d.getWidth());        setHeight((int)d.getHeight());    }