Class FrameFinder


  • public final class FrameFinder
    extends Object
    • Method Detail

      • setSupplier

        public static void setSupplier​(Supplier<Frame> s)
        Set a supplier that returns the app's preferred top-level Frame (may return null).
        Parameters:
        s - supplier of top-level frame.
      • findTopLevelFrame

        public static Optional<Frame> findTopLevelFrame()
        Find the best top-level AWT Frame to use as a dialog owner.
        Returns:
        top-level AWT frame for parenting a dialog.