Fix window sticking around - it doesn't anymore

This commit is contained in:
Christian 2012-07-29 23:46:52 -04:00
parent e1fc02b5b9
commit 825f1a8b50
1 changed files with 13 additions and 2 deletions

View File

@ -78,8 +78,11 @@ public class FMLEmbeddingRelauncher
}
finally
{
popupWindow.setVisible(false);
popupWindow.dispose();
if (popupWindow!=null)
{
popupWindow.setVisible(false);
popupWindow.dispose();
}
}
try
@ -182,6 +185,14 @@ public class FMLEmbeddingRelauncher
{
throw new RuntimeException(e);
}
finally
{
if (popupWindow!=null)
{
popupWindow.setVisible(false);
popupWindow.dispose();
}
}
}
public static void appletStart(Applet applet)