⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 c087fc264129001d1a3ae80e8fa6b61b

📁 实现中文信息处理中的汉语分词的功能
💻
字号:
import java.awt.*;
import java.awt.event.*;

class Window extends Frame implements ActionListener
{
	TextField t;
	Button but1;
	TextArea text1,text2;
	
	
	Window ()
	{
		setLayout(new FlowLayout());
			
			
			text1 = new TextArea(6,15);
			text2 = new TextArea(6,15);
			but1 = new Button("分词");
			add(text1);add(but1);add(text2);
			but1.addActionListener(this);
			addWindowListener(new WindowAdapter()
			{
				public void windowClosing(WindowEvent e){
					System.exit(0);
				}
			});
			text2.setEditable(false);
			setBounds(100,100,350,160);
			setVisible(true);
			validate();
			
			public void actionPerformed(ActionEvent ee)
			{
				text1.setText(null);
			}
	
}
public class sxm  {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO 自动生成方法存根
		Window win = new Window();
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -