Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse Plug-in Developer Guide
Previous Page Home Next Page

SWT standalone example - Text Editor

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 Edit menu contains Cut, Copy, Paste and Set Font items. The toolbar provides a bold text toggle, three colour tools, and a reset button, all of which operate on the current selection.

Running the example

Follow the SWT standalone examples setup instructions to install and run the example from your workspace.

The "Main" class is org.eclipse.swt.examples.texteditor.TextEditor.

This example can also be run using the Example Launcher. Select the Text Editor item from the Standalone category and click Run.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire