Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在J2ME中不用点击按钮就可以激活功能键?例如:在 RECEIVE MESSAGE 表单中有按钮命令回复,所以...如何激活命令回复而无需单击按钮?如果使用TIMER,源代码如何?
是的,您可以尝试 TimerTask 类,并在特定时间段使用 RECEIVE MESSAGE Button 的键码调用 commandAction。看这个例子
您需要在其运行方法中调用 CommandAction 方法。