public class ComponentUtils
extends java.lang.Object
| Constructor and Description |
|---|
ComponentUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
iterate(java.awt.Component component,
java.util.function.Consumer<java.awt.Component> consumer)
Recursively iterate over all components of the given component and all its children.
|
public static void iterate(java.awt.Component component,
java.util.function.Consumer<java.awt.Component> consumer)
component - The component to start the iteration fromconsumer - The consumer that will be called for each component