D 编程/DWT
外观
< D 编程
DWT 是 Java 中 Eclipse/SWT(标准窗口小部件工具包)GUI 库从 Java 到 D 的移植。
你可以编写与 SWT 相似的代码。例如
import dwt.all;
void main(char[][] args)
{
Display display = new Display();
Shell shell = new Shell(display);
Label label = new Label(shell, DWT.NONE);
label.setText("Hello World");
label.pack();
shell.pack();
shell.open();
while (!shell.isDisposed())
{
if (!display.readAndDispatch())
display.sleep();
}
display.dispose();
}