Commented out Error Dialog for a while to fix compilation problems.

This commit is contained in:
magenoxx 2011-08-25 11:21:56 +04:00
parent 48d7afa375
commit 39dea2890b

View file

@ -106,7 +106,7 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
private static Session session; private static Session session;
private ConnectDialog connectDialog; private ConnectDialog connectDialog;
private ErrorDialog errorDialog; //private ErrorDialog errorDialog;
private static CallbackClient callbackClient; private static CallbackClient callbackClient;
private static Preferences prefs = Preferences.userNodeForPackage(MageFrame.class); private static Preferences prefs = Preferences.userNodeForPackage(MageFrame.class);
private JLabel title; private JLabel title;
@ -189,8 +189,8 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
callbackClient = new CallbackClientImpl(this); callbackClient = new CallbackClientImpl(this);
connectDialog = new ConnectDialog(); connectDialog = new ConnectDialog();
desktopPane.add(connectDialog, JLayeredPane.POPUP_LAYER); desktopPane.add(connectDialog, JLayeredPane.POPUP_LAYER);
errorDialog = new ErrorDialog(); //errorDialog = new ErrorDialog();
desktopPane.add(errorDialog, JLayeredPane.POPUP_LAYER); //desktopPane.add(errorDialog, JLayeredPane.POPUP_LAYER);
ui.addComponent(MageComponents.DESKTOP_PANE, desktopPane); ui.addComponent(MageComponents.DESKTOP_PANE, desktopPane);
try { try {
@ -839,13 +839,13 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
public void showErrorDialog(final String title, final String message) { public void showErrorDialog(final String title, final String message) {
if (SwingUtilities.isEventDispatchThread()) { if (SwingUtilities.isEventDispatchThread()) {
errorDialog.showDialog(title, message); //errorDialog.showDialog(title, message);
} }
else { else {
SwingUtilities.invokeLater(new Runnable() { SwingUtilities.invokeLater(new Runnable() {
@Override @Override
public void run() { public void run() {
errorDialog.showDialog(title, message); //errorDialog.showDialog(title, message);
} }
}); });
} }