/** * Creates a new table. * * @param label the label to show * @return table */ protected YTable newTable(String label) { YTable table = factory.createTable(); if (label != null) { YDatadescription dtd = factory.createDatadescription(); table.setDatadescription(dtd); dtd.setLabel(label); } return table; }