|
|
See also TEA Editor and Java 1.1 Tutorials
TEA Editor is a simple text editor that uses the TETRACTYS ENHANCED APIs. It has Toolbar support, International Languages support, persistent Properties support, Printing capabilities and other features. It was developed for the Java 1.1 Tutorial Service. Here you can find the installation procedure and a description of the application. |
Download Shortcuts for TEAEditor
Classes Batch file for Win95 (1 KB) TETRACTYS Enhanced Apis (55 KB) Docs Source Code (76 KB) Javadoc generated docs (115 KB) |
If something goes wrong, it's important that you check the correct directories: in PATH you must add the directory where java.exe is stored, while in CLASSPATH you must put the directory you have created for TEAeditor.class and tea.jar (it's not a bad idea to add the path for the classes.zip of Java 1.1, too). Remember that the icons (GIF images) must be in a directory called /icons.
If the problem persists, write directly to TETRACTYS Freeware with a description of what goes wrong. For any comment or suggestion, please use the comments form
TEA Editor is a simple Editor with a Toolbar and some other useful feature. Its performances are limited by the functionalities of the TextArea component, but its simple to substitute the basic TextArea with another component, derived from TextArea, which enhances the capabilities of the editor (less simple is to write such a component). An example of these limitations is the reduced size of the text that a TextArea can manage (at least in the Windows 95 environment).
When you start TEA Editor a frame that fits the entire screen appears. This frame contains a MenuBar, a Statusbar and a Toolbar. The MenuBar is the usual one we can add to every frame window, the Statusbar is a simple Label component, while the Toolbar is a more complex component. In fact, it contains some IconButtons that write a self-description in the Statusbar when the pointer of the mouse enters them.
The Toolbar can be moved. The move operation is performed through a Popup Menu (the Popup is shown with the usual Popup trigger of your platform - right click for Windows 95). I have chosen such a move mechanism because of the poor performances I have experimented implementing the Toolbar dragging machanism.
Another inportant thing is that TEA Editor doesn't use the Datatransfer Api to execute cut and paste tasks because of a bug (I think of the JDK 1.1.1) that I haven't understand yet. However, in the methods of TextEditor you can find useDatatransferApis() that makes possible the access to those Apis.
The MenuBar contains the following items
The following are some bugs of this release of TEA Editor. These bugs are derived directly from the bugs of the JDK 1.1.1. I've found a workaround for some of them, but not for all. The work was too hard, so I'm waiting for the next release of JDK (It's already available at JavaSoft but my Internet connection is quite slow).
I think that these few notes are sufficient for a correct use of TEA Editor. This simple application was born to illustrate some mechanisms of the new AWT of Java 1.1. If you are interested go to the Development Tutorials .
![]() |
In the next Issue Weekly Applet will be | ![]() |
---|