JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION);
JComponent parentComponent = SwingUtilities.getRootPane((JComponent)parentView);
if (parentView != null) {
optionPane.setComponentOrientation(parentComponent.getComponentOrientation());
}
JDialog dialog = optionPane.createDialog(parentComponent, this.dialogTitle);
Dimension screenSize = getToolkit().getScreenSize();
Insets screenInsets = getToolkit().getScreenInsets(getGraphicsConfiguration());
// Check dialog isn't too high
int screenHeight = screenSize.height - screenInsets.top - screenInsets.bottom;
if (OperatingSystem.isLinux() && screenHeight == screenSize.height) {