Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
public class HalloSWT {
public static void main(String[] args) {
Display display = new Display();
Shell shell = new Shell(display);
Button b = new Button(shell, SWT.PUSH);
b.setText("Hallo SWT");
b.pack();
shell.setSize(200, 200);
shell.open();
while (!shell.isDisposed())
if (!display.readAndDispatch())
display.sleep();
}
}