Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'examples/org.eclipse.swt.examples.views/doc-html/swt_paint_ex.html')
-rw-r--r--examples/org.eclipse.swt.examples.views/doc-html/swt_paint_ex.html39
1 files changed, 39 insertions, 0 deletions
diff --git a/examples/org.eclipse.swt.examples.views/doc-html/swt_paint_ex.html b/examples/org.eclipse.swt.examples.views/doc-html/swt_paint_ex.html
new file mode 100644
index 0000000000..5c7ec77ab3
--- /dev/null
+++ b/examples/org.eclipse.swt.examples.views/doc-html/swt_paint_ex.html
@@ -0,0 +1,39 @@
+<!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 - Paint Tool</title>
+</head>
+<body>
+
+<h2>SWT example - Paint Tool</h2>
+
+<p>
+This example demonstrates the use of SWT graphics operations in the form of a
+rudimentary bitmap painting program. The Paint Tool implementation also
+demonstrates a mechanism for managing timed GUI operations in the background
+that are triggered by user input.
+</p>
+<p>
+Select a tool with which to draw in the drawing area. There are a number of tools
+to choose from on the toolbar. To change the color selection, click on a color in the
+palette below the drawing area; left-click to set the foreground color, right-click to set the
+background color.
+</p>
+
+<h3>Running the example</h3>
+
+<p>
+From Eclipse's <strong>Window</strong> menu select <strong>Show View</strong> &gt; <strong>Other</strong>.
+In the <strong>Show View</strong> dialog, expand <strong>SWT Examples</strong> and select
+the view named <strong>Paint</strong>. A view containing the paint program will appear.
+</p>
+<p>
+This example can also be run using the <a href="../../org.eclipse.swt.examples.launcher/doc-html/swt_launcher_ex.html">Example Launcher</a>.
+Select the <strong>Paint</strong> item from the <strong>Workbench Views</strong> category and click <strong>Run</strong>.
+</p>
+
+</body>
+</html>

Back to the top