Table or gridlayout in J2ME

依然范特西╮ 提交于 2019-12-11 19:43:06

问题


I want to display 3 rows on the screen for which table or gridlayout is needed. Is it possible without using frameworks? How should I implement for displaying 3 rows on the screen?


回答1:


You should try to use existing GUI libraries that help you use XML, CSS etc. to do layout. One site to check out this:

http://www.newsofthefuture.net/index.php?/archives/33-Evaluation-GUI-libraries-for-J2ME.html

Enjoy!




回答2:


If you want to use Table or gridlayout in J2ME you should create your own item with the help of CustomItem (javax.microedition.lcdui.CustomItem). You should code for drawing lines for rows and columns.

If you use NetBeans then in NetBeans Mobility Pack there is library used for displaying a table. If you use NetBeans then you use the "org.netbeans.microedition.lcdui.TableItem" for the table.



来源:https://stackoverflow.com/questions/2920847/table-or-gridlayout-in-j2me

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!