求一个记事本的JAVA源代码

来源:百度知道 编辑:UC知道 时间:2024/09/25 08:27:53
不用太复杂:文件:新建,保存,另存为,退出
编辑:复制,粘贴,剪切,
格式:字体(有系统所有字体和大小),自动换行,
能实现以上所有功能,谢谢了...

/*
* WriteBoard.java
*
* Created on 2006年12月19日, 下午7:26
*/

/**
*
* @author LecH.giF
*/
import java.awt.datatransfer.*;
import java.awt.event.*;
import java.awt.*;
import java.io.*;
import java.awt.FileDialog;
public class WriteBoard extends java.awt.Frame {
Clipboard clipboard =null;
FileDialog fc = new FileDialog(this);

/** Creates new form WriteBoard */
public WriteBoard() {
clipboard = getToolkit().getSystemClipboard();
initComponents();
}

/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
// <editor-fold defaultstate="collapsed" desc=" Generated Code ">
private void initComponents() {
textArea1 = new java.awt.TextArea();
m