http://java.sun.com/applets/applets/SpreadSheet/example1.html.
Here is a sample Text Editor called "Notes":http://ugweb.cs.ualberta.ca/~nelson/java/source/Notes.java
It is your basic bread-and-butter stand-alone text editor. It uses or has the following items:
(There is a FileDialog bug under Win95 with JDK-Beta 1)
- Menus and a Menubar
- Frame
- FileDialog
- TextArea
1,2 can be used in an applet by creating a Frame dynamically and then creating the menus. FileDialog is of little or no use to an applet as the applet can notwrite to the client's directories without first downloading a special .class file(and having the user manually install it) and the user modifiy his own ACL(access control list) for the applet.
You will be able to read and write to files via opening a URL and reading a file on the server with a URLConnection and FileInputStream
Below is working code for a class that includes most of the GUI components that you may want to use in a simple form. If you take the code and compile it, it should create a class which can be executed using "java". It also includes a method to handle the user events in cases of button clicks (bonus!!).The code is Beta compatible and is for an application (as opposed to an applet). But there should be no problem with running as an applet from Netscape. (Please get rid of the System.exit() command when running as an applet.) [Note: The author cautions that there may be extraneous features in the code.]
"How do I recognize regular expressions? Is a Java version of C "regexp(3)" available? Or of the simpler recognizer from Software Tools, even? Would it be legal just to translate "regexp.h" into Java?"
Jonathan Payne's regex package
With fast-forward, rewind, and stop features?
Select to view source
To see how to send email, check site http://www.pi.net/~hverbeek/Java.html.(Submitted by Bill Giel)To see how to receive email, check site http://www.pi.net/~hverbeek/Java.html.
GUESTBOOK.JAVA contains code that would be useful to someone trying to develop a class for sending E-Mail, since that's how GUESTBOOK works!http://www.nai.net/~rvdi/home.htm
Souce code at: http://www.nai.net/~rvdi/guestbook.java