code: private Insets getParentInsets() {
          if (rootParent instanceof JApplet) {
              return ((JApplet) rootParent).getInsets();
          }
  
          return ((Window) rootParent).getInsets();
      }
docs: Get the parent insets.
  
  @return the insets.