License Eclipse Public License
Lines 22
Keywords
Hello World (24) swt (2)
Included in this Library
Permissions
Owner: Stou S.
Viewable by Everyone
Editable by All Siafoo Users
Hide
Free your code from a slow death on your hard drive Join Siafoo Now or Learn More

SWT Hello World GUI Atom Feed 0

In Brief The minimal SWT based application
# 's
 1/*******************************************************************************
2 * Copyright (c) 2000, 2004 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11import org.eclipse.swt.widgets.*;
12
13public class HelloSwt {
14
15public static void main (String [] args) {
16 Display display = new Display ();
17 Shell shell = new Shell(display);
18 shell.open ();
19 while (!shell.isDisposed ()) {
20 if (!display.readAndDispatch ()) display.sleep ();
21 }
22 display.dispose ();
23}
24}

The minimal SWT based application