Loading AI tools
来自维基百科,自由的百科全书
SWT(Standard Widget Toolkit),最初由IBM開發的一套用於Java的圖形用戶界面系統,用來與Swing競爭。
開源整合開發環境Eclipse就是用Java和SWT開發的。
下列為基本使用SWT的Hello World程式。顯示出一個視窗(Shell)及一個標籤。
import org.eclipse.swt.*;
import org.eclipse.swt.widgets.*;
public class HelloWorld
{
public static void main (String[] args)
{
Display display = new Display();
Shell shell = new Shell(display);
Label label = new Label(shell, SWT.NONE);
label.setText("Hello World");
label.pack();
shell.pack();
shell.open();
while (!shell.isDisposed())
{
if (!display.readAndDispatch()) display.sleep();
}
display.dispose();
}
}
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.