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

📄 frame2.java~38~

📁 Apriori是数据挖掘中关联规则的经典算法
💻 JAVA~38~
字号:
package apriori;

import java.awt.BorderLayout;
import java.awt.Font;
import java.io.BufferedReader;
import java.io.FileReader;

import javax.swing.*;

import com.borland.jbcl.layout.XYConstraints;
import com.borland.jbcl.layout.XYLayout;

public class Frame2 extends JFrame {
    JPanel jPanel1 = new JPanel();
    JPanel jPanel2 = new JPanel();
    JTextArea jTextArea1 = new JTextArea();
    JLabel jLabel1 = new JLabel();
    XYLayout xYLayout3 = new XYLayout();
    JScrollPane jScrollPane1 = new JScrollPane();
    XYLayout xYLayout1 = new XYLayout();
    BorderLayout borderLayout1 = new BorderLayout();
    String time;
    JTextField jTextField1 = new JTextField();
    JLabel jLabel2 = new JLabel();
    public void mm(String time1)
    {
        time=time1;
    }


    public Frame2() {
        try {


            jbInit( );
        } catch (Exception exception) {
            exception.printStackTrace();
        }
    }

    private void jbInit( ) throws Exception {

        getContentPane().setLayout(borderLayout1);
        jLabel2.setFont(new java.awt.Font("Dialog", Font.PLAIN, 15));
        jLabel2.setText("挖掘时间:");

        jScrollPane1.getViewport().add(jTextArea1);

        jPanel2.setLayout(xYLayout1);
        jLabel1.setFont(new java.awt.Font("Dialog", Font.PLAIN, 21));
        jLabel1.setText("挖掘结果如下");
        jPanel1.setLayout(xYLayout3);
        jPanel2.add(jScrollPane1, new XYConstraints(2, 5, 397, 201));
        this.getContentPane().add(jPanel2, java.awt.BorderLayout.CENTER);
        this.getContentPane().add(jPanel1, java.awt.BorderLayout.NORTH);
        jPanel1.add(jLabel1, new XYConstraints(1, 1, 398, 73));
        jPanel1.add(jLabel2, new XYConstraints(48, 51, 97, 26));
        jPanel1.add(jTextField1, new XYConstraints(124, 53, 142, -1));
    }

    public  void main(){
         try {
               jTextField1.setText(time);
              BufferedReader read = new BufferedReader(new FileReader("c:/out.txt"));
              String line;
              StringBuffer buffer = new StringBuffer();
              while ((line = read.readLine())!= null) {
              buffer.append(line);
              buffer.append('\n');
       }
          jTextArea1.setText(buffer.toString());
        }catch(Exception e){
            e.printStackTrace();
        }
    }





}

⌨️ 快捷键说明

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