Table or gridlayout in J2ME

2019-08-21 17:11发布

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?

标签: java java-me
2条回答
老娘就宠你
2楼-- · 2019-08-21 18:12

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!

查看更多
戒情不戒烟
3楼-- · 2019-08-21 18:12

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.

查看更多
登录 后发表回答