Skip to main content
summaryrefslogtreecommitdiffstats
blob: 3d5571b25facb7d9ce1cc3bda62535a019a42269 (plain) (blame)
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
<!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 - Text Editor Example</title>
</head>
<body>

<h2>SWT Standalone Example - Text Editor</h2>

<p>
This example demonstrates how to use the StyledText widget to implement
a text editor with formatting support.
The example has a typical text editor interface.
The Edit menu contains Cut, Copy, Paste and Set Font items and the toolbar
provides a bold text toggle, three colour tools that operate on the current
selection, and a reset to defaults button that also operates on the current selection.
</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.texteditor.TextEditor</code>.
</p>
<p>
This example can also be run using the <a href="swt_launcher_ex.html">Example Launcher</a>.
Select the Text Editor 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>

Back to the top