MIDP 编程中什么与 swing 应用程序的 JButton 等效?
在 swing(GUI) 应用程序中我使用了 JButtons。
现在我需要在 MIDP 中使用相同的应用程序,但我很困惑......
我需要关于使用什么的想法,以及如何使用它的示例以及可能适合什么样的侦听器。(因为我需要在每次单击按钮后刷新显示的屏幕)
还有一个问题:我将 Netbins 与手机模拟器。屏幕很小,
那么有什么办法可以让这个屏幕变大,以防我需要显示太宽的东西吗? 比方说,像 11-15 按钮之类的东西......
In swing(GUI) application I used JButtons.
Now I need the same application in MIDP and I'm conuse...
I need Idea for what to use with and an example of how to use it and what kind of listener might possible fits.(Because I need to refresh the shown screen after every click on a button)
And one more question: I use Netbins with the simulator of cell-phone.The screen is very tiny,
so is there any way to make this screen larger,In case I need to show something too width?
Lets say,something like 11-15 buttons...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我不认为有任何东西与 JButton 完全等效,但我认为您可以通过实现命令来解决您的问题。我找到了很多例子:
I don't think there's anything that's exactly equivalent to a JButton, but I think you could solve your problem by implementing a Command though. I found a lot of examples:
有一种方法可以选择具有更大尺寸屏幕的模拟器。上次我检查时,Netbeans 文档提供了有关如何执行此操作的说明。
以您提到的 11-15 个按钮为例 - 您是否期望真实设备具有足够大的屏幕来方便用户显示这些按钮?
There is a way to choose an emulator with larger size screen. Last time I checked, Netbeans documentation had instructions on how to do that.
Take for example 11-15 buttons you mention - do you expect real device to have screen large enough to display these conveniently for user?