public boolean isActive()
    {
        if (context == 0)
        {
            context = -1;
            try
            {
                if (getAppletContext() != null)
                {
                    context = 1;
                }
            }
            catch (final Exception localException)
            {
            }
        }
        if (context == -1)
        {
            return active;
        }
        return super.isActive();
    }