All articles
Contents

    Vaadin 10+ as the Future of CUBA UI

    Label nameLabel = new Label("Field 1");
    nameLabel.setWidth(lastnameWidth + 2 * 6, Unit.PIXELS);
    tableHeader.addComponent(nameLabel, 0, 0, 0, 1);
    Label countryLabel = new Label("Field 2");
    countryLabel.setWidth(countryWidth + 2 * 6, Unit.PIXELS);
    tableHeader.addComponent(new Label("Field 3"), 1, 0);
    Label bornLabel = new Label("Field 4");
    bornLabel.setWidth(bornWidth + 2 * 6, Unit.PIXELS);
    tableHeader.addComponent(bornLabel, 2, 0, 2, 1);
    tableHeader.addComponent(countryFilterBox, 1, 1);
    
    // Put the header and table inside a vertical layout
    layout.addComponent(tableHeader);
    layout.addComponent(table);
    
    // Adjust the table height a bit
    table.setPageLength(table.size());
    

    Jmix is an open-source platform for building enterprise applications in Java