全文预览

java敏感词汇分析.doc

上传者:蓝天 |  格式:doc  |  页数:24 |  大小:0KB

文档介绍
300, 200); f1.setBackground(Color.lightGray); f1.setLayout(new GridLayout(3,1)); Panel p1=new Panel(); f1.add(p1); Panel p2=new Panel(); f1.add(p2); Panel p3=new Panel(); f1.add(p3); f1.setVisible(true); Label l1=new Label(" 请点击输入含有敏感词的文本文件: "); p3.add(l1); Button b1=new Button(" 确定"); p3.add(b1); b1.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { TestJMenu jmFrame=new TestJMenu(); } }); Label l2=new Label(" 敏感词汇保存在 sensitive.txt 文件中"); p1.add(l2); p2.add(new Label(" 请查看 sensitive.txt 文件")); }}第二个功能: import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.*; import java.io.File; import java.io.FileInputStream; public class TestJMenu extends JFrame implements ActionListener { JTextArea jta=new JTextArea(); TestJMenu()

收藏

分享

举报
下载此文档