i'm using netbeans 7.0.1 and i want to create a table item using xml data but i can't find any information about table item with xml and i don't know it can use together or can't. Any one can help me thanks
i'm using netbeans 7.0.1 and i want to create a table item using xml data but i can't find any information about table item with xml and i don't know it can use together or can't. Any one can help me thanks
Hello amasahara,
and welcome to Nokia Developer Discussion Boards!
Personally I am not aware of whether a table item by using XML could be achieved. It could be possible by using JSR-172 for XML parsing, similar as shown here: http://www.developer.nokia.com/Commu...arsing_Example
Additionally, you could construct UI by using NetBeans as shown by these examples here:
http://www.developer.nokia.com/Commu...in_a_MIDP_Form
http://www.developer.nokia.com/Commu...ble_in_Java_ME
Regards,
r2j7
hi r2j7,
thank you very much
if y have any examples about j2me + webservice and rss or xml will make me understand more easily.
thanks again
Regards,
amasahara
Hello amasahara,
regarding the examples, you might want to check the related developer resources on Java Developer's Library online:
Java Developer's Library > Developer's guides > Networking > Web Services
Regards,
r2j7
hello r2j7,
thank you very much
so i have a question, we can put data to table item j2me like display on web, not the same all.
ex: on web data is show horizontal but on j2me we show it vertical but data not exchange
and y can give a code examples please
Regards,
amasahara
Last edited by amasahara; 2012-02-15 at 00:56.
Hello amasahara,
could you provide more information on the requirement?:
-do you mean that you want to scale the same data due to different display resolution?
-or do you that mean you want to show the same data entirely differently i.e. on x scale for a mobile device instead of showing it on y scale of a laptop?
Regards,
r2j7
hello r2j7,
i want show data with your 2 idea. My data get from a webservice so data i get to j2me is xml. And i don't know how to show all data to table because row or colum i can't set default
Regards,
amasahara
Hi amasahara,
You might want to consider LWUIT in order to display a table in your application. This can be done by using a Table component. If you use the DefaultTableModel all you have to do is insert your xml data by specifying the columns and rows in the DefaultTableModel constructor. You can also create your own TableModel. By using the isCellEditable method you can specify if a cell should be modifiable by the user or not.
You can download the latest version (1.5) of LWUIT from here
You can find LWUIT's Developer Guide here. Check in particular section 4.1
There is a forum dedicated to LWUIT development here.