Add support for java dialog based text input