Class TextUIWrapper.DefaultWrapper

    • Method Detail

      • replaceUIIfNeeded

        protected boolean replaceUIIfNeeded​(javax.swing.text.JTextComponent textComponent)
        Every time the UI needs to be replaced we also need to make sure, that all buddy components are also in the component hierarchy. (That's because BasicTextUI removes all our buddies upon UI changes).
        Overrides:
        replaceUIIfNeeded in class TextUIWrapper<PromptTextUI>
        Returns:
        true if the UI has been replaced