Hi All, I need help.

I want to make a background processing program. The idea is, the program will start in start up and every about 10 seconds the screen will pop up something.

I wrote the code below. The program is starting when simulator begin. In console the timer is working (Tester counter was displayed from 1 to 10). When Tester counter = 10, the console display error message 'source code is not available
', and the simulator show none (Status.show not pop up)

What I want, I just want to POP UP something from timer processing.

I apply this for Blackberry HP and I use JDE from Blackberry.

I appreciate any help. Thank you.

 * Tester.java
 * © <your company here>, 2003-2008
 * Confidential and proprietary.

package TesterProject;

import net.rim.device.api.ui.*;
import net.rim.device.api.ui.component.*;
import net.rim.device.api.ui.container.*;
import net.rim.device.api.system.*; 

import java.util.Timer;
import java.util.TimerTask;

public class Tester {
    Timer timer;

    public Tester() {
       timer = new Timer();
       timer.schedule(new MyTask() ,1, 1000);

    static class MyTask extends TimerTask {
       int count;
       public void run() {
          if (count==100) count=0;
          System.out.println("Tester counter = "+Integer.toString(count));
          if (count==10) Status.show("ON Screen now !!!");

    public static void main(String args[]) {
       new Tester();

It's better to find your answers in this Link . May be it is useful to u....!