Class Scrolling

java.lang.Object
org.fest.swing.core.Scrolling

public final class Scrolling extends Object
Understands utility methods related to scrolling.
Since:
1.2
  • Constructor Details

    • Scrolling

      private Scrolling()
  • Method Details

    • scrollToVisible

      public static void scrollToVisible(Robot robot, JComponent c)
      Scrolls a JComponent into view within a container.
      Parameters:
      robot - simulates user input.
      c - the given component.
    • findClosestValidatingRootAncestor

      private static JComponent findClosestValidatingRootAncestor(JComponent c)
      Returns a component's closest validating root ancestor in the AWT containment hierarchy.
      Parameters:
      c - the given component.
      Returns:
      the found ancestor or null if there isn't one.
    • scrollToVisible

      private static void scrollToVisible(Robot robot, JComponent container, Component target)
      Scrolls a component into view within a container.
      Parameters:
      robot - simulates user input.
      container - the given container.
      target - the given component.
    • scrollToVisible

      private static void scrollToVisible(Robot robot, JComponent c, Rectangle rectangle)
      Scrolls a rectangular region of a component into view.
      Parameters:
      robot - simulates user input.
      c - the component.
      rectangle - the rectangular region.