JComponent () { myUi = new EditMigrationDialogUi(myMigrationMapSet, ToolbarDecorator.createDecorator(createTable()) .setAddAction(button -> addRow()) .setRemoveAction(button -> removeSelectedRow()) .setEditAction(button -> edit()) .setMoveUpAction(button -> moveUp()) .setMoveDownAction(button -> moveDown()) .createPanel(), this); final JTextField nameField = myUi.getNameField(); nameField.setText(myMigrationMap.getName()); myUi.getDescriptionTextArea().setText(myMigrationMap.getDescription()); return myUi.getPanel(); }