From 39dea2890b8d9a0ac4fef4ef881cbfe9f3c12669 Mon Sep 17 00:00:00 2001 From: magenoxx Date: Thu, 25 Aug 2011 11:21:56 +0400 Subject: [PATCH] Commented out Error Dialog for a while to fix compilation problems. --- Mage.Client/src/main/java/mage/client/MageFrame.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Mage.Client/src/main/java/mage/client/MageFrame.java b/Mage.Client/src/main/java/mage/client/MageFrame.java index 186ccb9a107..e67d680f82e 100644 --- a/Mage.Client/src/main/java/mage/client/MageFrame.java +++ b/Mage.Client/src/main/java/mage/client/MageFrame.java @@ -106,7 +106,7 @@ public class MageFrame extends javax.swing.JFrame implements MageClient { private static Session session; private ConnectDialog connectDialog; - private ErrorDialog errorDialog; + //private ErrorDialog errorDialog; private static CallbackClient callbackClient; private static Preferences prefs = Preferences.userNodeForPackage(MageFrame.class); private JLabel title; @@ -189,8 +189,8 @@ public class MageFrame extends javax.swing.JFrame implements MageClient { callbackClient = new CallbackClientImpl(this); connectDialog = new ConnectDialog(); desktopPane.add(connectDialog, JLayeredPane.POPUP_LAYER); - errorDialog = new ErrorDialog(); - desktopPane.add(errorDialog, JLayeredPane.POPUP_LAYER); + //errorDialog = new ErrorDialog(); + //desktopPane.add(errorDialog, JLayeredPane.POPUP_LAYER); ui.addComponent(MageComponents.DESKTOP_PANE, desktopPane); try { @@ -839,13 +839,13 @@ public class MageFrame extends javax.swing.JFrame implements MageClient { public void showErrorDialog(final String title, final String message) { if (SwingUtilities.isEventDispatchThread()) { - errorDialog.showDialog(title, message); + //errorDialog.showDialog(title, message); } else { SwingUtilities.invokeLater(new Runnable() { @Override public void run() { - errorDialog.showDialog(title, message); + //errorDialog.showDialog(title, message); } }); }