If you are experiencing an issue please mention the full platform your 
issue applies to:
IDE: NetBeans/Eclipse/IDEA Netbeand 8.2
Desktop OS Windows 10
Simulator 3.7.2
Device Simulator

import com.codename1.ui.util.UITimer;
    public void timerTest(int timeout) {
        System.out.println("Calling Timer for " + timeout + " MS");
Line 74:  UITimer.timer(timeout, false, new Runnable() {
            public void run() {
            for (int a = 0; a < 100; a++) {
                try {
                    System.out.println("timerTest: a = " + a);
                    Thread.sleep(1000);
                } catch (InterruptedException ex) {
                }
            }
            }
        });
        System.out.println("Done Timer for " + inc.socketTimeOut + " MS");
    }

Throws java.lang.NullPointerException
 at com.codename1.ui.util.UITimer.schedule(UITimer.java:74)
 at com.codename1.ui.util.UITimer.timer(UITimer.java:100

I'm looking for the javax.swing.Timer;
Like:
    public void setExecTab1ActionTimer() {
        timer = new Timer(500, new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                ExecTimerAction(timer);
                if (timer != null) {
                    timer.stop();
                }
            }
        });
        timer.start();
    }

Thoughts?

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/5c5d7f7f-0da4-40f6-88ff-667cd5cc92cc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to