@Override
   public boolean isActive() {
      if(this.context == 0) {
         this.context = -1;

         try {
            if(this.getAppletContext() != null) {
               this.context = 1;
            }
         } catch (Exception var2) {
            var2.printStackTrace();
         }
      }

      return this.context == -1?this.active:super.isActive();
   }