oldLocation = currentDialogBox.getBounds().getLocation();
currentDialogBox.dispose();
}
// Create properties dialog
AbstractShapePropertiesDialogBox optionDialog = new AbstractShapePropertiesDialogBox(
JSynoptic.gui.getOwner(),
panel,
panel.getShapeName() + resources.getString("propertiesTitle"),
shapes,
JSynoptic.gui.getActiveComponent()
);
if (oldLocation != null) {
optionDialog.setLocation(oldLocation);
}
currentDialogBox = optionDialog;
// Show dialog box
optionDialog.setVisible(true);
} else {
JSynoptic.gui.setStatus(resources.getString("noProperties"));
}