getContentPane().add(createToolBar(preferences, controller), BorderLayout.NORTH);
// Map Enter accelerator of furniture library to furniture modification action
furnitureLibraryView.getInputMap().put(KeyStroke.getKeyStroke("ENTER"), ActionType.MODIFY_FURNITURE);
furnitureLibraryView.getActionMap().put(ActionType.MODIFY_FURNITURE, getActionMap().get(ActionType.MODIFY_FURNITURE));
controller.getFurnitureLibraryController().addSelectionListener(new SelectionListener() {
public void selectionChanged(SelectionEvent ev) {
getActionMap().get(ActionType.DELETE).setEnabled(!ev.getSelectedItems().isEmpty());
getActionMap().get(ActionType.MODIFY_FURNITURE).setEnabled(!ev.getSelectedItems().isEmpty());
}
});