}
try
{
- int reply = JOptionPane.showInternalConfirmDialog(
- Desktop.desktop, // component,
+ int reply = JOptionPane.showConfirmDialog(
+ null, // component,
dialogText, dialogTitle,
(allowCancel) ? JOptionPane.YES_NO_CANCEL_OPTION
: JOptionPane.YES_NO_OPTION,