public int setVertical (int v)
	{
		if (TopLine == null) return 0;
		int NewTop = LineCount * v / 1000;
		if (NewTop > TopLineCount)
		{
			for (int i = TopLineCount; i < NewTop; i++)
			{
				if (TopLine.next() == null) break;
				TopLine = TopLine.next();
				TopLineCount++;
			}
			repaint();
		}
		else if (NewTop < TopLineCount)
		{
			for (int i = TopLineCount; i > NewTop; i--)
			{
				if (TopLine.previous() == null) break;
				TopLine = TopLine.previous();
				TopLineCount--;
			}
			repaint();
		}
		LastScrollTime = System.currentTimeMillis();
		return v;
	}