资源简介
可根据关键字查找文件,包括(*.txt,*.java,*.jsp,*.html,*.htm,*.xml)
(注:新的版本发布了,加了一些新功能!http://download.csdn.net/source/2914935)

代码片段和文件信息
package Txt;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowEvent;
import java.awt.event.WindowFocusListener;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import javax.swing.ButtonGroup;
import javax.swing.DefaultListModel;
import javax.swing.JButton;
import javax.swing.JCheckBox;
import javax.swing.JDialog;
import javax.swing.JFileChooser;
import javax.swing.Jframe;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.JTabbedPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.JToolBar;
import javax.swing.filechooser.FileFilter;
public class SearchText implements ActionListener WindowFocusListener
Runnable {
Jframe searchframe = new Jframe();
JDialog dialog = new JDialog(searchframe “设置“);
JPanel jpanel = new JPanel();
JPanel checkBoxPanel = new JPanel();
JPanel radioButtonPanel = new JPanel();
JPanel buttonPanel = new JPanel();
JLabel wordLabel = new JLabel(“关键字:“);
JLabel fileLabel = new JLabel(“搜索范围:“);
JLabel stateBar = new JLabel();
JTextField wordField = new JTextField();
DefaultListModel listModel = new DefaultListModel();
JList fileList = new JList(listModel);
JTabbedPane tabbed = new JTabbedPane();
JToolBar toolBar = new JToolBar();
JTextArea resultArea = new JTextArea();
JButton chooseDialog = new JButton(“选择“);
JButton searchButton = new JButton(“搜索“);
JButton setButton = new JButton(“设置“);
JButton aboutButton = new JButton(“关于“);
JButton exitButton = new JButton(“退出“);
JButton saveButton = new JButton(“保存设置“);
JButton cancelButton = new JButton(“取消“);
JScrollPane areaJsp = new JScrollPane(resultArea);
JScrollPane listJsp = new JScrollPane(fileList);
JFileChooser fileChooser = new JFileChooser();
ButtonGroup radioGroup = new ButtonGroup();
JCheckBox txtCheckBox = new JCheckBox(“*.txt“);
JCheckBox javaCheckBox = new JCheckBox(“*.java“);
JCheckBox jspCheckBox = new JCheckBox(“*.jsp“);
JCheckBox htmlCheckBox = new JCheckBox(“*.html“);
JCheckBox htmCheckBox = new JCheckBox(“*.htm“);
JCheckBox xmlCheckBox = new JCheckBox(“*.xml“);
JRadioButton caseRadioButton = new JRadioButton(“区分大小写“);
JRadioButton unCaseRadioButton = new JRadioButton(“不区分大小写“);
File[] files = null;
int mount = 0;
boolean txtIsSelect = true javaIsSelect = true jspIsSelect = true
htmlIsSelect = true htmIsSelect = true xmlIsSelect = true
caseIsSelect = false unCaseIsSelect = true;
public void init() {
searchframe.settitle(“一键搜索“);
searchframe.setSize(390 405);
searchframe.setLocationRelativeTo(null);
searchframe.setResizable(false);
searchframe.setDefaultCloseOperation(Jframe.EXIT_ON_CLOS
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 232 2009-08-22 10:26 File\.classpath
文件 500 2009-08-23 09:56 File\.project
文件 7930 2010-03-30 23:49 File\一键搜索.jar
文件 51 2009-08-31 11:37 File\bin\me
文件 12973 2010-08-16 17:40 File\bin\Txt\SearchText.class
文件 1072 2010-08-16 17:40 File\bin\Txt\SearchText$TxtFileFilter.class
文件 51 2009-08-31 11:37 File\src\me
文件 14277 2010-08-14 16:20 File\src\Txt\SearchText.java
目录 0 2010-08-16 17:40 File\bin\me
目录 0 2010-08-16 17:40 File\bin\Txt
目录 0 2010-07-28 02:04 File\src\me
目录 0 2010-07-28 02:04 File\src\Txt
目录 0 2010-07-28 02:04 File\bin
目录 0 2010-07-28 02:04 File\src
目录 0 2010-07-28 02:04 File
----------- --------- ---------- ----- ----
37086 15
相关资源
- jsonarray所必需的6个jar包.rar
- 三角网构TIN生成算法,Java语言实现
- java代码编写将excel数据导入到mysql数据
- Java写的cmm词法分析器源代码及javacc学
- JAVA JSP公司财务管理系统 源代码 论文
- JSP+MYSQL旅行社管理信息系统
- 推荐算法的JAVA实现
- 基于Java的酒店管理系统源码(毕业设
- java-图片识别 图片比较
- android毕业设计
- java23种设计模式+23个实例demo
- java Socket发送/接受报文
- JAVA828436
- java界面美化 提供多套皮肤直接使用
- 在线聊天系统(java代码)
- 基于Java的图书管理系统807185
- java中实现将页面数据导入Excel中
- java 企业销售管理系统
- java做的聊天系统(包括正规课程设计
- Java编写的qq聊天室
- 商店商品管理系统 JAVA写的 有界面
- JAVA开发聊天室程序
- 在linux系统下用java执行系统命令实例
- java期末考试试题两套(答案) 选择(
- JAVA3D编程示例(建模、交互)
- Java 文件加密传输
- java做的房产管理系统
- 基于jsp的bbs论坛 非常详细
- [免费]java实现有障碍物的贪吃蛇游戏
- java Servlet投票实例
评论
共有 条评论