/** * Traverses a component tree and sets mandatory backgrounds * 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 #setMandatoryBackground(JTextComponent) */ public static void updateComponentTreeMandatoryBackground(Container container) { visitComponentTree(container, null, new MandatoryBackgroundVisitor()); }
/** * Traverses a component tree and sets mandatory backgrounds * 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 #setMandatoryBackground(JTextComponent) */ public static void updateComponentTreeMandatoryBackground(Container container) { visitComponentTree(container, null, new MandatoryBackgroundVisitor()); }