Rewrite setVisible method in TextComponent.
Now if a TextComponent is set to invisible, it disappears.