From 0bfbb89ae53b0821125b0f05b9989e212908d724 Mon Sep 17 00:00:00 2001 From: benfry Date: Mon, 13 Oct 2008 00:30:05 +0000 Subject: [PATCH] fix JOptionPane break --- app/src/processing/app/windows/Platform.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/processing/app/windows/Platform.java b/app/src/processing/app/windows/Platform.java index 52a49868f..9bd02826d 100644 --- a/app/src/processing/app/windows/Platform.java +++ b/app/src/processing/app/windows/Platform.java @@ -55,7 +55,7 @@ public class Platform extends processing.app.Platform { "Processing is not set to handle .pde files.\n" + "Would you like to make it the default?"; int result = - JOptionPane.showConfirmDialog(this, prompt, "Reassign .pde files", + JOptionPane.showConfirmDialog(null, prompt, "Reassign .pde files", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE); @@ -70,7 +70,7 @@ public class Platform extends processing.app.Platform { "This version of Processing is not the default application\n" + "to open .pde files. Would you like to make it the default?"; int result = - JOptionPane.showConfirmDialog(this, prompt, "Reassign .pde files", + JOptionPane.showConfirmDialog(null, prompt, "Reassign .pde files", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE);