Then you need to make an SWT shell class and a class for the dialog window itself Download the code at the bottom of the article.
然后您需要生成一个SWT外壳类和对话框窗口本身的类(下载本文底部的代码)。
As we have SWT widgets inside our shell and we intend to use a gradient background on the shell itself, all the widgets need to be transparent.
由于我们的SWT组件在shell内部并且我们打算对shell本身使用渐变背景,所有的组件都必须是透明的。
To start, SWT USES shell and display to initialize and draw the Windows.
为了开始,SWT使用shell和显示来初始化和描绘窗口。
In this first installment of a gentle introduction to SWT and JFace, I have introduced the most basic SWT widget controls: label, text, button, composite, and shell.
在SWT和JFace系列的第一期中,我们介绍了大多数基本SWT窗口小部件控件:标签、文本、按钮、复合控件和shell。
A JFace window is not actually the GUI object for a top-level window (SWT already provides one, called a shell).
JFace窗口实际上不是顶级窗口的GUI对象(SWT已经提供了一个,名为Shell)。
A JFace window is not actually the GUI object for a top-level window (SWT already provides one, called a shell).
JFace窗口实际上不是顶级窗口的GUI对象(SWT已经提供了一个,名为Shell)。
应用推荐