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

1

6

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?

Lysander answered 6/7, 2014 at 18:35 Comment(0)
S
8

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.

Schade answered 6/7, 2014 at 19:28 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.