zSlider = new JSlider(JSlider.HORIZONTAL, 0, sizeZ, z);
zSlider = new JSlider(JSlider.HORIZONTAL, 0, maxZ, z);
	private void initSlider(int sizeZ, int z)	{		zSlider = new JSlider(JSlider.HORIZONTAL, 0, sizeZ, z);		zSlider.setToolTipText("Move the slider to navigate across Z stack");		zSlider.setMinorTickSpacing(1);		zSlider.setMajorTickSpacing(10);		zSlider.setPaintTicks(true);		zSlider.setOpaque(false);		Hashtable labelTable = new Hashtable();		labelTable.put(new Integer(0), new JLabel(""+0) );		labelTable.put(new Integer(sizeZ), new JLabel(""+sizeZ));		zSlider.setLabelTable(labelTable);		zSlider.setPaintLabels(true);	}