Thanks for the hint.

                @Override
                protected Component createCell(Object value, final int row, 
final int column, boolean editable) {
                    if (row == -1) {
                        Component headercell = super.createCell(value, row, 
column, editable);
                        headercell = new TextArea((String) value);
                        ((TextArea)headercell).setColumns(5);
                        ((TextArea)headercell).setRows(1);
                        headercell.setEnabled(false);
                        headercell.setFlatten(false);
                        headercell.setUIID("CustComplaintsTableHeader");
                        return headercell;
                    }
I use TextArea as my header cell, so I can do multi line text, explicitly 
setting the colums solved the problem.

Thatns again

Regards.

On Monday, February 3, 2020 at 9:07:36 PM UTC-5, Shai Almog wrote:
>
> That's odd. Do you override createCell or the constraint method?
> Any other changes in the class?
> I'm assuming these cells are editable.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/315ad9d2-0237-4d99-8f00-d747853a6fcf%40googlegroups.com.

Reply via email to