title: Modify ticker code
body: <p>Im trying to modify the class below so that the scrolling text appears behind the "overlay.png" image which is painted on the below left corner of screen.</p>
  
  <p>I tried changing </p>
  
  <pre><code>final int screenWidth = Display.getWidth();
  </code></pre>
  
  <p>to</p>
  
  <pre><code>final int screenWidth = 240
  </code></pre>
  
  <p>But did'nt work.</p>
  
  <p>How can I acieve this ?</p>
  
  <p>Thanks </p>
  
  <pre><code>   public class Ticker extends Field {
  
          String text;
      final int screenWidth = Display.getWidth();
      int offset = screenWidth;
      Timer timer = new Timer();
      final int delay = 20;
      private Bitmap backgroundImage;
  
      public void setText(String text) {
          this.text = text;
      }
  
      public String getText() {
          return text;
      }
  
      public Ticker(String text) {
          this.text = text;
          backgroundImage = Constants.TICKER_BACKGROUND_IMAGE;
          final int width = Font.getDefault().getAdvance(text);
          TimerTask timerTask = new TimerTask() {
              public void run() {
                  offset--;
                  if (offset + width == 0) {
                      offset = screenWidth;
                  }
                  invalidate();
              }
          };
          timer.scheduleAtFixedRate(timerTask, delay, delay);
      }
  
      protected void layout(int width, int height) {
          int w = Display.getWidth();
          int h = Font.getDefault().getHeight();
          setExtent(w, h);
  
      }
  
      protected void paint(Graphics graphics) {
  
  
          graphics.drawBitmap( 0, 0, backgroundImage.getWidth(), backgroundImage.getHeight(), backgroundImage, 0, 0 );
          Bitmap b = Bitmap.getBitmapResource("overlay.png");
          graphics.drawBitmap( 0, 0, b.getWidth(), b.getHeight(), b, 0, 0 );
  
          graphics.setColor(Color.WHITE);
          graphics.drawText(text, offset, 0);
      }
  
  
  }
  </code></pre>