Back to the TextEdit Page.
Last Updated 9/29/97
The SimpleFilterInterface is very simple, containing just two methods:
The HelloBean is a simple bean implementing this interface:
public class HelloBean implements SimpleFilterInterface { String menuString = new String("Hello World"); public String getMenuString() { return menuString; } public String filterText(String text) { return menuString; } }
This Bean ignores incoming data and returns a "Hello World" string as its filtered text. More useful beans would do a bit more processing in their filterText method.
If you are running Windows and have Microsoft's nmake installed, simply type "nmake".
If you are using Sun's JDK:
Drop the resulting bean in TextEdit's "jars" directory and you're done.