CodeForge QQ客服 CodeForge 400电话 客服电话 4006316121

Main.java ( 文件浏览 )

  • 发布于2016-05-18
  • 浏览次数:0
  • 下载次数:0
  • 下载需 1 积分
  • 侵权举报
			/*
 * Main.java
 *
 * Created on 2008年7月17日, 下午3:36
 */

package mrg;

import java.awt.Image;
import java.io.File;
import java.io.IOException;
import java.util.Date;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author  Administrator
 */
public class Main extends javax.swing.JFrame {


    private String selectedType="path" ; // 选中的类型
    /** Creates new form Main */
    public Main() {

        initComponents();
        buttonGroup1.add(this.jRadioButton1);
        buttonGroup1.add(this.jRadioButton2);                    
    
}

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")  
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {


        buttonGroup1 = new javax.swing.ButtonGroup();
        jDialog1 = new javax.swing.JDialog();
        jTextField2 = new javax.swing.JTextField();
        jButton2 = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jTextField3 = new javax.swing.JTextField();
        jButton3 = new javax.swing.JButton();
        jButton4 = new javax.swing.JButton();
        jButton5 = new javax.swing.JButton();
        jFileChooser1 = new javax.swing.JFileChooser();
        jTextField1 = new javax.swing.JTextField();
        jButton1 = new javax.swing.JButton();
        jRadioButton1 = new javax.swing.JRadioButton();
        jRadioButton2 = new javax.swing.JRadioButton();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        jLabel1 = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenu2 = new javax.swing.JMenu();
        jMenu3 = new javax.swing.JMenu();

        jTextField2.setEditable(false);

        jButton2.setText(".......");
        jButton2.addMouseListener(new java.awt.event.MouseAdapter() {

            public void mousePressed(java.awt.event.MouseEvent evt) {

                jButton2MousePressed(evt);
            
}
        
});

        jLabel2.setText("源文件目录");

        jLabel3.setText("索引目录");

        jTextField3.setEditable(false);

        jButton3.setText(".......");
        jButton3.addMouseListener(new java.awt.event.MouseAdapter() {

            public void mousePressed(java.awt.event.MouseEvent evt) {

                jButton3MousePressed(evt);
            
}
        
});

        jButton4.setText("关闭");
        jButton4.addMouseListener(new java.awt.event.MouseAdapter() {

            public void mousePressed(java.awt.event.MouseEvent evt) {

                jButton4MousePressed(evt);
            
}
        
});

        jButton5.setText("保存");
        jButton5.addMouseListener(new java.awt.event.MouseAdapter() {

            public void mousePressed(java.awt.event.MouseEvent evt) {

                jButton5MousePressed(evt);
            
}
        
});

        org.jdesktop.layout.GroupLayout jDialog1Layout = new org.jdesktop.layout.GroupLayout(jDialog1.getContentPane());
        jDialog1.getContentPane().setLayout(jDialog1Layout);
        jDialog1Layout.setHorizontalGroup(
            jDialog1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jDialog1Layout.createSequentialGroup()
                .add(93, 93, 93)
                .add(jDialog1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel2)
                    .add(jLabel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 71, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jDialog1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, jTextField3)
                    .add(org.jdesktop.layout.GroupLayout.TRAILING, jTextField2, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 263, Short.MAX_VALUE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jDialog1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                    .add(jButton3, 0, 0, Short.MAX_VALUE)
                    .add(jButton2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 51, Short.MAX_VALUE))
                .addContainerGap(24, Short.MAX_VALUE))
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jDialog1Layout.createSequentialGroup()
                .addContainerGap(200, Short.MAX_VALUE)
                .add(jButton5)
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                .add(jButton4)
                .add(192, 192, 192))
        );
        jDialog1Layout.setVerticalGroup(
            jDialog1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(jDialog1Layout.createSequentialGroup()
                .add(23, 23, 23)
                .add(jDialog1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel2)
                    .add(jTextField2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jButton2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(28, 28, 28)
                .add(jDialog1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jLabel3)
                    .add(jTextField3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jButton3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 188, Short.MAX_VALUE)
                .add(jDialog1Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jButton4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jButton5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 20, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
        );

        setTitle("全文检索");
        setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));

        jButton1.setText("搜索");
        jButton1.addMouseListener(new java.awt.event.MouseAdapter() {

            public void mousePressed(java.awt.event.MouseEvent evt) {

                jButton1MousePressed(evt);
            
}
        
});

        jRadioButton1.setSelected(true);
        jRadioButton1.setText("标题");
        jRadioButton1.setName("path"); // NOI18N
        jRadioButton1.addMouseListener(new java.awt.event.MouseAdapter() {

            public void mousePressed(java.awt.event.MouseEvent evt) {

                jRadioButton1MousePressed(evt);
            
}
        
});

        jRadioButton2.setText("内容");
        jRadioButton2.setName("body"); // NOI18N
        jRadioButton2.addMouseListener(new java.awt.event.MouseAdapter() {

            public void mousePressed(java.awt.event.MouseEvent evt) {

                jRadioButton2MousePressed(evt);
            
}
        
});

        jScrollPane1.setBorder(null);

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {


            
},
            new String [] {

                "文件名", "路径", "内容摘要"
            
}
        ));
        jScrollPane1.setViewportView(jTable1);
        jTable1.getColumnModel().getColumn(0).setResizable(false);

        jLabel1.setForeground(new java.awt.Color(255, 0, 0));

        jMenu1.setText("文件");
        jMenuBar1.add(jMenu1);

        jMenu2.setText("配置");
        jMenu2.addMouseListener(new java.awt.event.MouseAdapter() {

            public void mousePressed(java.awt.event.MouseEvent evt) {

                jMenu2MousePressed(evt);
            
}
        
});
        jMenuBar1.add(jMenu2);

        jMenu3.setText("更新索引");
        jMenu3.addMouseListener(new java.awt.event.MouseAdapter() {

            public void mousePressed(java.awt.event.MouseEvent evt) {

                jMenu3MousePressed(evt);
            
}
        
});
        jMenuBar1.add(jMenu3);

        setJMenuBar(jMenuBar1);

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, jScrollPane1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 687, Short.MAX_VALUE)
            .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
                .addContainerGap(182, Short.MAX_VALUE)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(layout.createSequentialGroup()
                        .add(jTextField1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 278, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jButton1)
                        .add(18, 18, 18)
                        .add(jLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 110, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(layout.createSequentialGroup()
                        .add(84, 84, 84)
                        .add(jRadioButton1)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(jRadioButton2)))
                .add(36, 36, 36))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(org.jd
...
...
(文件超长,未完全显示,请下载后阅读剩余部分)
			
...
展开> <收缩

下载源码到电脑,阅读使用更方便

1 积分

快速下载
还剩0行未阅读,继续阅读
云测速

源码文件列表

温馨提示: 点击源码文件名可预览文件内容哦 ^_^
...
名称 大小 修改日期
HTMLParse.class2.03 kB22-07-08|11:00
IndexerMain.class3.51 kB22-07-08|11:00
IndexItems.properties849.00 B22-07-08|11:00
Lucene.properties131.00 B22-07-08|10:57
LuceneException.class522.00 B22-07-08|10:57
Main$1.class648.00 B22-07-08|10:57
Main$10.class503.00 B22-07-08|10:57
Main$2.class648.00 B22-07-08|10:57
Main$3.class648.00 B22-07-08|10:57
Main$4.class648.00 B22-07-08|10:57
Main$5.class648.00 B22-07-08|10:57
Main$6.class648.00 B22-07-08|10:57
Main$7.class648.00 B22-07-08|10:57
Main$8.class648.00 B22-07-08|10:57
Main$9.class648.00 B22-07-08|10:57
Main.class11.84 kB22-07-08|10:57
NewJFrame$1.class521.00 B22-07-08|10:57
NewJFrame.class1.39 kB22-07-08|10:57
ParseDocumentFactory.class1.29 kB22-07-08|10:57
ParseI.class173.00 B22-07-08|10:57
ParseUtil.class4.58 kB22-07-08|10:57
PDFParse.class3.06 kB22-07-08|10:57
PropertiesParser.class3.67 kB22-07-08|11:00
QueryBean.class877.00 B22-07-08|10:57
RedOfficeParse.class3.55 kB22-07-08|10:57
SearcherMain.class3.75 kB22-07-08|10:57
Test.class721.00 B22-07-08|10:57
TXTParse.class1.96 kB22-07-08|10:57
WORDParse.class2.36 kB22-07-08|10:57
XLSParse.class3.96 kB22-07-08|10:57
build.xml3.28 kB18-07-08|10:05
htmllexer.jar68.38 kB18-07-08|09:40
htmlparser.jar281.35 kB18-07-08|09:40
junit.jar118.23 kB18-07-08|09:40
lucene-core-2.0.0.jar394.14 kB18-07-08|09:40
PDFBox-0.7.3.jar3.17 MB18-07-08|09:40
poi-3.0-rc4-20070503.jar887.03 kB18-07-08|09:40
sax2.jar35.14 kB18-07-08|09:40
swing-layout-1.0.3.jar115.33 kB18-07-08|09:40
thumbelina.jar32.50 kB18-07-08|09:40
tm-extractors-0.4.jar225.93 kB18-07-08|09:40
tm-extractors-1.0.jar109.75 kB18-07-08|09:40
Main$1.class698.00 B17-07-08|13:06
Main$2.class666.00 B17-07-08|13:06
Main$3.class510.00 B17-07-08|13:06
Main.class4.05 kB17-07-08|13:06
lucene.jar60.88 kB22-07-08|11:00
MANIFEST.MF373.00 B18-07-08|10:10
MANIFEST.MF.bak373.00 B18-07-08|10:10
HTMLParse.class2.03 kB17-07-08|17:00
IndexerMain.class3.49 kB17-07-08|17:00
LuceneException.class522.00 B17-07-08|14:19
Main$1.class648.00 B17-07-08|18:02
Main$2.class648.00 B17-07-08|18:02
Main$3.class648.00 B17-07-08|18:02
Main$4.class501.00 B17-07-08|18:02
Main$5.class501.00 B17-07-08|15:32
Main.class7.66 kB17-07-08|18:02
ParseDocumentFactory.class1.29 kB17-07-08|17:00
ParseException.class519.00 B17-07-08|13:19
ParseI.class173.00 B17-07-08|17:00
ParseUtil.class4.66 kB17-07-08|17:00
PDFParse.class3.06 kB17-07-08|17:00
PropertiesParser.class2.48 kB17-07-08|14:19
QueryBean.class877.00 B17-07-08|14:19
RedOfficeParse.class3.55 kB17-07-08|17:00
SearcherMain.class3.70 kB17-07-08|17:39
TXTParse.class1.96 kB17-07-08|17:00
WORDParse.class2.36 kB17-07-08|17:00
XLSParse.class3.96 kB17-07-08|17:00
README.TXT1.41 kB22-07-08|11:00
manifest.mf85.00 B14-07-08|17:38
build-impl.xml32.42 kB18-07-08|10:05
genfiles.properties455.00 B18-07-08|10:05
config.properties0.00 B17-07-08|13:08
private.properties168.00 B17-07-08|13:08
private.xml211.00 B22-07-08|10:35
project.properties2.79 kB18-07-08|10:05
project.xml576.00 B18-07-08|10:05
HTMLParse.java1,004.00 B18-07-08|14:31
IndexerMain.java3.68 kB18-07-08|15:42
IndexItems.properties849.00 B22-07-08|11:00
Lucene.properties131.00 B18-07-08|16:38
LuceneException.java578.00 B18-07-08|14:31
Main.form15.18 kB21-07-08|15:15
Main.java16.99 kB21-07-08|15:15
NewJFrame.form1.50 kB21-07-08|15:11
NewJFrame.java1.63 kB21-07-08|15:11
ParseDocumentFactory.java1.58 kB18-07-08|14:29
ParseI.java209.00 B18-07-08|14:30
ParseUtil.java3.82 kB18-07-08|14:31
PDFParse.java1.81 kB18-07-08|14:29
PropertiesParser.java3.65 kB22-07-08|10:59
QueryBean.java469.00 B18-07-08|14:29
RedOfficeParse.java2.19 kB18-07-08|16:32
SearcherMain.java3.08 kB18-07-08|15:48
Test.java374.00 B18-07-08|15:07
TXTParse.java921.00 B18-07-08|14:30
WORDParse.java1.27 kB18-07-08|14:30
XLSParse.java2.94 kB18-07-08|14:29
mrg0.00 B22-07-08|11:00
classes0.00 B22-07-08|10:57
lib0.00 B22-07-08|10:56
lucene0.00 B15-07-08|10:34
META-INF0.00 B18-07-08|10:10
mrg0.00 B17-07-08|17:01
private0.00 B17-07-08|13:08
mrg0.00 B21-07-08|14:01
build0.00 B22-07-08|10:57
dist0.00 B22-07-08|10:37
nbproject0.00 B15-07-08|10:34
src0.00 B17-07-08|13:06
test0.00 B15-07-08|10:34
lucene0.00 B22-07-08|10:57
云测速

Main.java (4.94 MB)

需要 1 积分
您持有 积分

CodeForge积分(原CF币)全新升级,功能更强大,使用更便捷,不仅可以用来下载海量源代码马上还可兑换精美小礼品了 了解更多

您的积分不足

支付宝优惠套餐快速获取 30 积分

订单支付完成后,积分将自动加入到您的账号。以下是优惠期的人民币价格,优惠期过后将恢复美元价格。

更多付款方式:网银PayPal

上传代码,免费获取

您本次下载所消耗的积分将转交上传作者。

同一源码,30天内重复下载,只扣除一次积分。

登录 CodeForge

还没有CodeForge账号? 立即注册
关注微博
联系客服

Switch to the English version?

Yes
CodeForge 英文版
No
CodeForge 中文版

完善个人资料,获价值¥30元积分奖励!

^_^"呃 ...

Sorry!这位大神很神秘,未开通博客呢,请浏览一下其他的吧
好的