/**
* Displays this panel in a modal dialog box.
*/
public void displayView(View parentView) {
final Component focusOwner = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner();
if (SwingTools.showConfirmDialog((JComponent)parentView,
this, this.dialogTitle, this.nameTextField) == JOptionPane.OK_OPTION) {
if (this.controller.getBackFaceShown() != null
&& this.controller.getBackFaceShown()) {
JRootPane rootPane = SwingUtilities.getRootPane((JComponent)parentView);
Cursor defaultCursor = rootPane.getCursor();
try {
rootPane.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
this.controller.setModel(ImportFurnitureTaskPanel.copyToTemporaryOBJContent(
this.iconComponent.getModel(), this.controller.getModel()));
} catch (IOException e) {
JOptionPane.showMessageDialog(rootPane,
preferences.getLocalizedString(FurniturePanel.class, "backFaceShownError"),
preferences.getLocalizedString(FurniturePanel.class, "errorTitle"),
JOptionPane.ERROR_MESSAGE);
} finally {
rootPane.setCursor(defaultCursor);
}
}
this.controller.modifyFurniture();
}
if (focusOwner != null) {
focusOwner.requestFocusInWindow();
}
}