grid.addRow(available, null, selected);
grid.setYWeights(1.0, 1.0, 1.0);
grid.setFills(Fill.BOTH, Fill.VERTICAL, Fill.BOTH);
grid.setInsets(1, 0, 10, 0, 10);
grid.addRow(wrap(availableTables), layoutButtons(), wrap(selectedTables));
grid.decorate(canvas);
}
private static JComponent wrap(UiProvider ui) {
// We want the Available Tables and Selected Tables widgets to have the same size.
// The only way to enforce that with a GridBayLayout (which is what NColumnPanel