Adding hint (like in a search box) to SWT one-line Text

java, swt, text, textbox

Solution

Have a look at the documentation of `Text`. Especially the method `setMessage(String)`:

Sets the widget message. The message text is displayed as a hint for the user, indicating the purpose of the field.

Problem

I want to create an installer, which downloads files from a URL which is going to be a default value if the `Text` is blank, and the "hint" will be Insert your specific URL And I'm wondering how to add the hint?

Original source