| <!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>Standard Widget Toolkit (SWT) Standalone Example - Text Editor</h2> | |
| <h3>Introduction</h3> | |
| <p>This example demonstrates how to use the StyledText widget to implement | |
| a text editor with formatting support. | |
| </p> | |
| <h3>Running the example</h3> | |
| <p>If the Example Launcher is installed, select the Text Editor item from the Standalone category and click Run. | |
| Otherwise, install and run the example manually as per the | |
| <a href="swt_manual_setup.html">Standalone Examples Manual Setup</a> instructions. The executable class is | |
| <code>org.eclipse.swt.examples.texteditor.TextEditor</code>. | |
| </p> | |
| <h3>Details</h3> | |
| <p>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> | |
| <p><a href="hglegal.htm"><img SRC="ngibmcpy.gif" ALT="Copyright IBM Corporation 2000, 2001. All Rights Reserved." BORDER=0 height=12 width=195></a></p> | |
| </body> | |
| </html> |