Class DisplayUtils


  • public class DisplayUtils
    extends Object
    Author:
    richter
    • Method Detail

      • displayOnJavaFXThread

        public static <T> T displayOnJavaFXThread​(DisplayCallable<T> callable)
      • displayOnEDT

        public static <T> T displayOnEDT​(DisplayCallable<T> callable)
        Invokes DisplayCallable.call() of callable if the invoking thread is the EDT or invokes callable on the EDT.
        Type Parameters:
        T - the type of return value created by callable
        Parameters:
        callable - the callable to produce the return value
        Returns:
        the return value created by the callable