| <!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 a StyledText widget to implement |
| a text editor with formatting support. |
| The example has a typical text editor interface. |
| The <strong>Edit</strong> menu contains <strong>Cut</strong>, <strong>Copy</strong>, <strong>Paste</strong> and <strong>Set Font</strong> items. The toolbar |
| provides a bold text toggle, three colour tools, and a reset button, all of which operate on the current selection. |
| </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.texteditor.TextEditor</code>. |
| </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>Text Editor</strong> item from the <strong>Standalone</strong> category and click <strong>Run</strong>. |
| </p> |
| |
| <p><a href="hglegal.htm"><img SRC="ngibmcpy.gif" ALT="Copyright IBM Corporation and others 2000, 2004. All Rights Reserved." BORDER=0 height=14 width=324></a></p> |
| </body> |
| </html> |