/** * Traverses a component tree and sets mandatory backgrounds * to text components that have blank content and 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 #setMandatoryBackground(JTextComponent) */ public static void updateComponentTreeMandatoryAndBlankBackground(Container container) { visitComponentTree(container, null, new MandatoryAndBlankBackgroundVisitor()); }
/** * Traverses a component tree and sets mandatory backgrounds * to text components that have blank content and 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 #setMandatoryBackground(JTextComponent) */ public static void updateComponentTreeMandatoryAndBlankBackground(Container container) { visitComponentTree(container, null, new MandatoryAndBlankBackgroundVisitor()); }