Help Table

Hi.
I am use component table display data. And when not data table display same as folow image :

but I do not know how to be so. Does anyone know the instructions. Thank you

If I understood you correctly, you could put the table in a layout and put (or make visible) a Label with the text under the table when the table is empty.

thank you for answering

but i want display label text " data is empty " in table when data is null. But i do not know how be so.

How about this. Manually create a column with whatever content you want based on the value of itemId.


final Table table = new Table();
table.addGeneratedColumn("columnName", new Table.ColumnGenerator() {
    public Component generateCell(Table source, Object itemId, Object columnId) {
        return new Label(itemId != null ? "not null text": "null text");
    }
});