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

📄 frame1.java~44~

📁 一款高校科研管理系统
💻 JAVA~44~
字号:
package scince;

import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.JButton;
import java.awt.Rectangle;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JScrollBar;
import javax.swing.JScrollPane;
import javax.swing.JSeparator;
import javax.swing.JSplitPane;

public class Frame1 extends JFrame {
    public Frame1() {
        try {
            jbInit();
        } catch (Exception exception) {
            exception.printStackTrace();
        }
    }

    private void jbInit() throws Exception {
        getContentPane().setLayout(null);
        jButton1.setBounds(new Rectangle(219, 69, 93, 30));
        jButton1.setText("人员信息");
        jButton1.addActionListener(new Frame1_jButton1_actionAdapter(this));
        jButton4.setBounds(new Rectangle(219, 131, 100, 35));
        jButton4.setText("科研成果");
        jButton3.setBounds(new Rectangle(60, 128, 96, 34));
        jButton3.setText("部门信息");
        jButton5.setBounds(new Rectangle(61, 183, 100, 32));
        jButton5.setText("退出");
        jButton5.addActionListener(new Frame1_jButton5_actionAdapter(this));
        jButton2.addActionListener(new Frame1_jButton2_actionAdapter(this));

        this.getContentPane().add(jButton1);
        this.getContentPane().add(jButton2);
        this.getContentPane().add(jButton3);
        this.getContentPane().add(jButton4);
        this.getContentPane().add(jButton5);
        jButton2.setBounds(new Rectangle(59, 67, 94, 36));
        jButton2.setText("项目信息");

    }

    JButton jButton1 = new JButton();
    JButton jButton2 = new JButton();
    JButton jButton3 = new JButton();
    JButton jButton4 = new JButton();
    JButton jButton5 = new JButton();
    public void jButton1_actionPerformed(ActionEvent e) {
       person_Info person_Info=new person_Info();
       person_Info.setSize(580,500);
       person_Info.setLocation(300,200);
       person_Info.setTitle("人员表");
       person_Info.setVisible(true);
    }

    public void jButton5_actionPerformed(ActionEvent e) {
    this.dispose();
    }

    public void jButton2_actionPerformed(ActionEvent e) {
               project_Info project_Info=new project_Info();
               project_Info.setSize(580,500);
               project_Info.setLocation(300,200);
               project_Info.setTitle("人员表");
              project_Info.setVisible(true);
    }


}


class Frame1_jButton2_actionAdapter implements ActionListener {
    private Frame1 adaptee;
    Frame1_jButton2_actionAdapter(Frame1 adaptee) {
        this.adaptee = adaptee;
    }

    public void actionPerformed(ActionEvent e) {
        adaptee.jButton2_actionPerformed(e);
    }
}


class Frame1_jButton5_actionAdapter implements ActionListener {
    private Frame1 adaptee;
    Frame1_jButton5_actionAdapter(Frame1 adaptee) {
        this.adaptee = adaptee;
    }

    public void actionPerformed(ActionEvent e) {
        adaptee.jButton5_actionPerformed(e);
    }
}


class Frame1_jButton1_actionAdapter implements ActionListener {
    private Frame1 adaptee;
    Frame1_jButton1_actionAdapter(Frame1 adaptee) {
        this.adaptee = adaptee;
    }

    public void actionPerformed(ActionEvent e) {
        adaptee.jButton1_actionPerformed(e);
    }

}

⌨️ 快捷键说明

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