From 411ad59bda1e6d4ffa995824ddfbd9d86b07d626 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Mon, 14 May 2007 12:13:08 +0000 Subject: [PATCH] removed Java 1.6 added ModalityType --- tools/cooja/java/se/sics/cooja/GUI.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/GUI.java b/tools/cooja/java/se/sics/cooja/GUI.java index b352aa072..f4a5429ca 100644 --- a/tools/cooja/java/se/sics/cooja/GUI.java +++ b/tools/cooja/java/se/sics/cooja/GUI.java @@ -24,13 +24,12 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: GUI.java,v 1.45 2007/05/11 10:55:07 fros4943 Exp $ + * $Id: GUI.java,v 1.46 2007/05/14 12:13:08 fros4943 Exp $ */ package se.sics.cooja; import java.awt.*; -import java.awt.Dialog.ModalityType; import java.awt.event.*; import java.beans.PropertyVetoException; import java.io.*; @@ -3069,9 +3068,9 @@ public class GUI { errorDialog = new JDialog((Dialog) parentComponent, title, true); else if (parentComponent instanceof Frame) errorDialog = new JDialog((Frame) parentComponent, title, true); - else if (parentComponent instanceof Window) - errorDialog = new JDialog((Window) parentComponent, title, - ModalityType.APPLICATION_MODAL); +// else if (parentComponent instanceof Window) +// errorDialog = new JDialog((Window) parentComponent, title, +// ModalityType.APPLICATION_MODAL); else { logger.fatal("Bad parent for error dialog"); errorDialog = new JDialog((Frame) null, title + " (Java stack trace)");