public void update(Graphics g)
  {
    Graphics gImg = null;
    Dimension dmImg = null;
    
    Dimension dm = getSize();
    int wndWidth = dm.width;
    int wndHeight = dm.height;

    if((dmImg == null) ||
       (dmImg.width != wndWidth) ||
       (dmImg.height != wndHeight))
    {
      dmImg = new Dimension(wndWidth, wndHeight);
      mImg = createImage(wndWidth, wndHeight);
      gImg = mImg.getGraphics();
    }

    Color fg = getForeground();
    Color bg = getBackground();
    gImg.setColor(bg);

    gImg.fillRect(0, 0, 
      dmImg.width, dmImg.height);

    gImg.setColor(fg);

    gImg.setFont(
      new Font("Helvetica", Font.BOLD, 50));
    gImg.drawString(szScrolledText,
      nPosition, nTitleHeight + 10);
      
    nPosition--;
    if(nPosition < -nStrLength)
       nPosition = getSize().width;

    paint(g);
  }