code: private boolean isParentLeftToRight() {
          if (rootParent instanceof JFrame) {
              return SeaGlassLookAndFeel.isLeftToRight((JFrame) rootParent);
          } else if (rootParent instanceof JDialog) {
              return SeaGlassLookAndFeel.isLeftToRight((JDialog) rootParent);
          } else {
              return false;
          }
      }
docs: Is the parent window laid out left-to-right?
  
  @return {@code true} if the parent is laid out left-to-right,
  {@code false} otherwise.