SwingTextDisplayPanel: loosen text viewer typing

This prepares for TextDisplay supporting any Object, not just String.