如何在J2ME中无需单击按钮即可激活功能键?

发布于 2024-12-17 12:00:23 字数 96 浏览 3 评论 0原文

如何在J2ME中无需单击按钮即可激活功能键?例如 : 在“接收消息”表单中有“命令回复”按钮,那么...如何在不单击按钮的情况下激活“命令回复”?如果使用TIMER,源代码如何?

how to activate the function keys without having to click the button in J2ME? for example :
in form RECEIVE MESSAGE have button Command REPLY, so...how to activate Command REPLY without having to click the button? if using TIMER, how the source code?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

↘紸啶 2024-12-24 12:00:23

是的,您可以尝试 TimerTask 类,并在特定时间段使用接收消息按钮的键码调用 commandAction。查看 this 示例,

您需要在其中调用 CommandAction 方法运行方法。

yes you can try TimerTask class and at a particular time period call a commandAction with the keycode of RECEIVE MESSAGE Button. Look at this Example

You Need to call CommandAction Method in to its Run Method.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文