blob: 32589b14d8beb871ab571a6299655173bc8f4ec2 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2005. 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">
<title>SWT - Layout Example</title>
<h2>SWT example - Layouts</h2>
This example is a simple demonstration of common SWT layouts.
It consists of a tab folder where each tab in the folder allows the
user to interact with a different SWT layout.
The user can insert widgets into a layout and set the values of the layout data
using a property sheet. When the user has a suitable arrangement, the underlying
code can be generated by clicking on the <strong>Code</strong> button.
<h3>Running the example</h3>
Follow the <a href="swt_manual_setup.html">SWT standalone examples setup</a>
instructions to install and run the example from your workspace.
The "Main" class is <code>org.eclipse.swt.examples.layoutexample.LayoutExample</code>.
This example can also be run using the <a href="swt_launcher_ex.html">Example Launcher</a>.
Select the <strong>Layouts</strong> item from the <strong>Workbench Views</strong> category and click <strong>Run</strong>.