@Override
		public void paintComponent(Graphics g)
		{
			g.setColor(Color.white);
			g.fillRect(0, 0, getWidth(), getHeight());
			g.setColor(Color.black);
			Point p = new Point();
			Point last = null;

			if(buffer == null)
			{
				return;
			}

			int width = Math.min(buffer.length, getWidth());
			for(p.x = 0; p.x < width; p.x++)
			{
				p.y = buffer[p.x];

				if(last != null)
				{
					g.drawLine(last.x, last.y * 2 + yoff, p.x, p.y * 2 + yoff);
				} else
				{
					last = new Point();
				}
				last.x = p.x;
				last.y = p.y;
			}
		}