Developing a matrix component

12 views
Skip to first unread message

Lukman Jaji

unread,
May 31, 2016, 4:24:12 PM5/31/16
to CodenameOne Discussions


Hi all

I am developing an app that needs a matrix component. A matrix component is  basically a table with questions on the first column and the following columns are answers presented inform of either a text box or radio buttons. 

-----------------------------------------------
----------------------|--Yes---| No ---| Maybe|-------
Are you ok?----|           |        |

The spaces are either filled with a radiobuttonn or a textbox.

Has anyone done something like this before?

Or can anyone share code on how to achieve this component? With Swing JTable, its soo easy to develop as shown in my screen shot attached.

Any help I can get will be appreciated
matrix.png

Shai Almog

unread,
Jun 1, 2016, 12:24:31 AM6/1/16
to CodenameOne Discussions
Hi,
table will work with checkboxes by default if you use booleans in the model.
You can also hust use a table layout and create that UI from components.

There are samples of customizing table cell rendering in the developer guide under the table section: https://www.codenameone.com/manual/components.html
Reply all
Reply to author
Forward
0 new messages