Class DemoUtilities

java.lang.Object
net.anwiba.testing.demo.DemoUtilities

public class DemoUtilities extends Object
  • Field Details

    • DELAY_TIME

      public static final Duration DELAY_TIME
    • DEFAULT_TIMEOUT_MILLIS

      public static final Duration DEFAULT_TIMEOUT_MILLIS
    • DEFAULT_FIXED_WIDTH_FONT

      public static final Font DEFAULT_FIXED_WIDTH_FONT
    • DEFAULT_PROPORTIONAL_FONT

      public static final Font DEFAULT_PROPORTIONAL_FONT
  • Method Details

    • createDialog

      public static JDialog createDialog(Component parentComponent)
    • createWindow

      public static JWindow createWindow(Component parentComponent)
    • setNativeLookAndFeel

      public static void setNativeLookAndFeel()
    • expandTreeNode

      public static void expandTreeNode(JTree tree, TreeNode tNode)
    • centerOnScreen

      public static void centerOnScreen(Window window)
    • getWindowForComponent

      public static Window getWindowForComponent(EventObject event)
    • getWindowForComponent

      public static final Window getWindowForComponent(Component component)
    • showAndDispose

      public static <T extends Window> void showAndDispose(Supplier<T> windowSupplier, Consumer<T> afterOpenedTask)
    • createJFrame

      public static JFrame createJFrame()
    • pause

      public static void pause()
    • pause

      public static void pause(Duration delay)