summaryrefslogtreecommitdiffstats
path: root/examples/org.eclipse.swt.examples/doc-html/swt_helloworld_ex.html
blob: f9e89532764c8f08ea1b28fa86c28cf41cbadc26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
   <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 to show how to get started 
creating an application with SWT.  They cover creating a shell, using event listeners, 
processing events in an event loop, using layouts, and drawing with a Graphic 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 the Shell.
</p>

<h4>Hello World 3</h4>
<p>
This example builds on HelloWorld2 and demonstrates how to resize the Label
when the Shell resizes using a Listener mechanism.
</p>

<h4>Hello World 4</h4>
<p>
This example builds on HelloWorld2 and demonstrates how to resize the Label
when the Shell resizes using a Layout.
</p>

<h4>Hello World 5</h4>
<p>
This example builds on HelloWorld1 and demonstrates how to draw directly
on an SWT Control using a graphic context.
</p>

<h3>Running the example</h3>

<p>
Follow the <a href="swt_manual_setup.html">Manual 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 the Hello World item from the Standalone category and click Run.
</p>

<p><a href="hglegal2002.htm"><img SRC="ngibmcpy2002.gif" ALT="Copyright IBM Corporation and others 2000, 2002.  All Rights Reserved." BORDER=0 height=14 width=324></a></p>
</body>
</html>