/** * Traverses a component tree and sets mandatory borders * to text components that have been marked as mandatory * with {@link #setMandatory(JComponent, boolean)} before. * The iteration starts at the given container. * * @param container the component tree root * * @see #setMandatory(JComponent, boolean) * @see #setMandatoryBorder(JTextComponent) */ public static void updateComponentTreeMandatoryBorder(Container container) { visitComponentTree(container, null, new MandatoryBorderVisitor()); }
/** * Traverses a component tree and sets mandatory borders * to text components that have been marked as mandatory * with {@link #setMandatory(JComponent, boolean)} before. * The iteration starts at the given container. * * @param container the component tree root * * @see #setMandatory(JComponent, boolean) * @see #setMandatoryBorder(JTextComponent) */ public static void updateComponentTreeMandatoryBorder(Container container) { visitComponentTree(container, null, new MandatoryBorderVisitor()); }