Review:
This article presents a very impressive table component for use in Java ME. Java ME does not provide any default table component. The NetBeans Mobility Pack does provide a fairly basic table component, but as the author of this article rightly points out, it suffers from several shortcomings, including the fact that it does not support text-wrapping within a cell. The following article discusses the NetBeans TableItem: How to show table layout data in a MIDP form
The code for the table component is nicely organised into three classes. First is the Table class which contains the logic and rendering code for the table. Secondly, the TableCell class contains the logic and properties of individual table cells, such as width, height and whether or not the cell is editable. Finally, the CellEditor class contains logic for editable table cells. The code is commented where appropriate to help the reader understand what is going on in the code.
The result is a table component which is impressive both in terms of its appearance and scalability. Text can wrap within a cell where appropriate, and the table is able to scroll. Cell contents are also editable. In my personal opinion, it is a big improvement on the NetBeans TableItem component.
--Larry101 08:13, 26 September 2009 (UTC)