我想创建一个安装程序,它从一个 URL 下载文件,如果 Text
为空,该 URL 将成为默认值,并且“提示”将是
Insert your specific URL
我想知道如何添加提示?
最佳答案
查看 Text
的文档.特别是 setMessage(String)
方法:
Sets the widget message. The message text is displayed as a hint for the user, indicating the purpose of the field.
关于java - 向 SWT 单行文本添加提示(如在搜索框中),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24599043/