import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import javax.swing.event.*;
public class Frame1 extends JFrame {
Container c = new Container();
Label la = new Label("");
JMenuBar jmb = new JMenuBar();
JMenu file = new JMenu("文件");
JMenu edit = new JMenu("编辑");
JMenu option = new JMenu("字体");
JMenu about = new JMenu("关于");
JMenuItem open = new JMenuItem("打开");
JMenuItem save = new JMenuItem("另存为");
JMenuItem exit = new JMenuItem("退出");
JMenuItem copy = new JMenuItem("复制");
JMenuItem cut = new JMenuItem("剪切");
JMenuItem paste = new JMenuItem("粘贴");
JMenuItem delete = new JMenuItem("删除");
JMenuItem italic = new JMenuItem("斜体");
JMenuItem bold = new JMenuItem("粗体");
JMenuItem version = new JMenuItem("关于记事本");
JTextPane ta = new JTextPane();
JFileChooser chooser = new JFileChooser();
FileInputStream filestream = null;
myversion exitversion = new myversion();
String selected = new String();
int dot, mark;