Skip to content

Instantly share code, notes, and snippets.

@rdp
rdp / TextEditor.java
Created May 14, 2011 13:57
swt demo example text editor (simple text editor). originally from http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/SWTTextEditorDemo.htm
// first download the swt jar, in this instance to "swt/win32.jar"
// then compile like javac -cp swt/win32.jar TextEditor.java
// then run like java -cp .;swt/win32.jar TextEditor
import java.io.IOException;
import java.io.InputStream;
import java.util.ResourceBundle;
import java.util.Vector;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.ExtendedModifyEvent;