thread = new Thread(this, "zSelector");
thread.start();
}
void addScrollbars(ImagePlus imp) {
ImageStack s = imp.getStack();
<BUG>int stackSize = s.getSize();
nSlices = stackSize;</BUG>
hyperStack = imp.getOpenAsHyperStack();
int[] dim = imp.getDimensions();
int nDimensions = 2+(dim[2]>1?1:0)+(dim[3]>1?1:0)+(dim[4]>1?1:0);

thread = new Thread(this, "zSelector");
thread.start();
}
void addScrollbars(ImagePlus imp) {
ImageStack s = imp.getStack();
int stackSize = s.getSize();
int sliderHeight = 0;
nSlices = stackSize;
hyperStack = imp.getOpenAsHyperStack();
int[] dim = imp.getDimensions();
int nDimensions = 2+(dim[2]>1?1:0)+(dim[3]>1?1:0)+(dim[4]>1?1:0);
