int maxZ = sizeZ-1; int maxT = sizeT-1;
int maxZ = sizeZ-1, maxT = sizeT-1;
    void setDefaultZT(int t, int z, int sizeT, int sizeZ)    {        ToolBarManager tbm = toolBar.getManager();        tbm.onTChange(t);        tbm.onZChange(z);        int maxZ = sizeZ-1;        int maxT = sizeT-1;        tbm.setMaxT(maxT);        tbm.setMaxZ(maxZ);        toolBar.getZLabel().setText("/"+maxZ);        toolBar.getTLabel().setText("/"+maxT);        resetSliders(maxT, t, maxZ, z);        boolean bT = false, bZ = false, bZT = false;        if (maxT != 0) bT = true;        if (maxZ != 0) bZ = true;        toolBar.getTField().setEditable(bT);        toolBar.getZField().setEditable(bZ);        toolBar.getViewer3D().setEnabled(bZ);        if (bT || bZ) bZT = true;        viewer3DItem.setEnabled(bZ);        toolBar.getMovie().setEnabled(bZT);        movieItem.setEnabled(bZT);    }