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.
使用 LCDUI 我已经成功处理了关键事件。但是我在 lwuit 中开发了我的整个应用程序,我不想从 lwuit 切换到 lcdui。按下按钮时,任何人都可以帮助我放大和缩小图像。LWUIT 中的按钮事件是否有任何按键被按下。请帮我。
你可以使用方法
public void keyPressed(int keyCode) {}
你有:
Form.addKeyListener() and addGameKeyListener()
您还可以派生表单(或焦点组件)并按照 Tan 的建议覆盖 keyPressed/Released。