You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
914 B

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package XDEDM_Notepad;
import java.awt.*; //图形界面java库
import javax.swing.*; //GUI工具包
import java.awt.event.*; //AWT事件包
import java.io.*; //输入输出
import java.awt.datatransfer.*; //复制粘贴数据传输
public class XNotepad extends JFrame implements ActionListener,WindowListener {
JTextArea XNarea = new JTexArea();
File fnameContainer;
public XNotepad(){
Font fnt = new Font("SimSun",Font.PLAIN,15); //宋体15号
Container con=getContentPane();
JMenuBar XNb = new JMenuBar(); //菜单
JMenu XNfile = new JMenu("文件");
JMenu XNedit = new JMenu("编辑");
JMenu XNhelp = new JMenu("帮助");
JMenu XNabout = new JMenu("关于");
}
}