scroll = new JScrollBar(JScrollBar.HORIZONTAL, 0, width, 0, 1024 / (height + 1));
scroll = new JScrollBar(JScrollBar.HORIZONTAL, 0, width, 0, 1024 / (height + 1) - 1);
    	public TileChooser(int width, int height, boolean textTiles)    	{    		this.width = width;    		this.height = height;    		this.textTiles = textTiles;    		addMouseListener(this);    		scroll = new JScrollBar(JScrollBar.HORIZONTAL, 0, width, 0, 1024 / (height + 1));    		scroll.addAdjustmentListener(this);    		    		this.setPreferredSize(new Dimension(            		(getWidthTiles() + 1) * MapEditor.tileWidth + 1,            		(getHeightTiles() + 1) * MapEditor.tileHeight + 1));    	}