JTextPane textPane = new JTextPane(); // 文本窗格,编辑窗口
JLabel statusBar = new JLabel(); // 状态栏
JFileChooser filechooser = new JFileChooser(); // 文件选择器
public EditorDemo() { // 构造函数
super("简单的文本编辑器"); // 调用父类构造函数
Action[] actions = // Action数组,各种操作命令
{
new NewAction(),
new OpenAction(),
new SaveAction(),
new CutAction(),
new CopyAction(),
new PasteAction(),
new AboutAction(),
new ExitAction() };