desktop = instance;
if (oomex != null)
{
- Console.error("Out of Memory when " + action,
- oomex);
+ Console.error("Out of Memory when " + action, oomex);
}
javax.swing.SwingUtilities.invokeLater(this);
System.gc();
public OOMWarning(String string, OutOfMemoryError oomerror)
{
- this(string, oomerror, Desktop.desktop);
+ this(string, oomerror, Desktop.getDesktopPane());
}
@Override