在 swt/jface 对话框中显示图像的提示
我正在寻找在 SWT/JFace 对话框中显示图像的提示/教程。
有人可以指出我正确的方法吗?
I'm looking for tips/tutorials for displaying an image in a SWT/JFace dialog box.
Can someone please point me to the right way?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
查看官方教程。
如果可点击:
如果不可点击,则可以使用标签而不是按钮。
Take a look at the official tutorial.
If it is clickable:
If it is not clickable then you can use Label instead of Button.
从你的问题我了解到你正在试图展示
对话框标题区域中的图像。
您可以使用“setTitleImage(Image image)”函数
您的主类(扩展 Dialog 的类)
示例:
From your question i understood that you are trying to display
an image in the title area of the daialog Box.
You can make use of the "setTitleImage(Image image)" function in
your main class (class which extends the Dialog )
example: