blob: 5e7c9a4f266de77fc3e4b6d4f000decd0df3fa5b [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2013. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="../../../book.css" charset="ISO-8859-1" type="text/css">
<title>SWT - Hello World Examples</title>
</head>
<body>
<h2>SWT standalone example - Hello World</h2>
<p>
The Hello World examples are a set of introductory examples that show how to get started
on creating an application with SWT. They cover the creation of a shell, the use of event listeners,
using layouts, processing events in an event loop, and drawing with a Graphics Context.
</p>
<h4>Hello World 1</h4>
<p>
This example demonstrates how to open a Shell and process the events.
</p>
<h4>Hello World 2</h4>
<p>
This example builds on HelloWorld1 and demonstrates how to display a Label inside of the Shell.
</p>
<h4>Hello World 3</h4>
<p>
This example builds on HelloWorld2 and demonstrates how to use a listener mechanism to resize the Label
when the Shell size changes.
</p>
<h4>Hello World 4</h4>
<p>
This example builds on HelloWorld2 and demonstrates how to use a Layout to resize the Label
when the Shell size changes.
</p>
<h4>Hello World 5</h4>
<p>
This example builds on HelloWorld1 and demonstrates how to draw directly
on an SWT Control using a Graphics Context.
</p>
<h3>Running the example</h3>
<p>
Follow the <a href="swt_manual_setup.html">SWT standalone examples setup</a>
instructions to install and run the example from your workspace.
</p>
<p>
The "Main" class is <code>org.eclipse.swt.examples.helloworld.HelloWorld[1-5]</code>.
</p>
<p>
This example can also be run using the <a href="swt_launcher_ex.html">Example Launcher</a>.
Select one of the <strong>Hello World</strong> items from the <strong>Standalone</strong> category and click <strong>Run</strong>.
</p>
</body>
</html>