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.
我正在开发一个Java ME应用程序,在这里我想在特定的时间间隔刷新我的表单。我试图TimerTask一次又一次地重新显示表格。它工作正常,但我认为它会消耗内存。那么有没有其他方法可以刷新表单。
Java ME
TimerTask
通过刷新,如果您的意思是跟随事物,那么每次您想要刷新表单时都不需要 Display.setCurrent() 。