In PromptTextUI.paintPromptComponent, the prompt component is painted without
ever being added to the display hierarchy. This can cause issues with painting
in various look and feels (such as Substance, which queries the components
parent). The component must be added to the display hierarchy to be painted
correctly.