Java me定时警报帮助,它显示消息但立即执行,并且不等待超时用完 [英] Java me Timed alert help it shows message but does it immediatly, and it does not wait for timeout to run out

查看:82
本文介绍了Java me定时警报帮助,它显示消息但立即执行,并且不等待超时用完的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Java me定时警报帮助它显示消息,但立即执行,并且不等待超时用完

Java me Timed alert help it shows message but does it immediatly, and it does not wait for timeout to run out

public void alert()
{
    Alert alert = new Alert("picture recived");
    alert.setTimeout(20000);
    Display.getDisplay(this).setCurrent(alert);
}

public void btServerReady()
    {
        form.append("Waiting for picture");
        alert();
    }

推荐答案

您可能需要阅读以下内容: ^ ]
You might want to read this: Using Threads in Java ME[^]


这篇关于Java me定时警报帮助,它显示消息但立即执行,并且不等待超时用完的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆