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

📄 teachingsystem.java

📁 这个是我二年级写的一个教务管理系统 大家可以下来
💻 JAVA
字号:
//主界面--教务管理系统
package caoyu;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.table.*;

class TeachingSystem extends JFrame {
    DefaultTableModel dtm;
    JLabel label=new JLabel("欢迎使用本系统 请选择操作");
    JButton Btn1=new JButton("学生信息系统");
    JButton Btn2=new JButton("教师信息系统");
    JButton Btn3=new JButton("班级信息系统");
    JButton Btn4=new JButton("院系信息系统");  
    JButton Btn5=new JButton("课程信息系统 ");
    JButton Btn6=new JButton("选课信息系统 ");
    JButton Btn7=new JButton("教务系统管理 ");
    JButton Btn8=new JButton("系统使用帮助 ");
    TeachingSystem ()
    {
    this.getContentPane().setLayout(null);
    this.setSize(new Dimension(450, 300));
    this.setTitle("上海电力学院教务系统");
        
    JScrollPane c=new JScrollPane();
    c.setLayout(null);
    c.setBounds(10,10,400,400);   
   
   
    label.setBounds(60,20,300,30);
    label.setFont(new Font("宋体",Font.BOLD,22));
    Btn1.setBounds(30,60,150,30);
    Btn1.setFont(new Font("宋体",Font.BOLD,16));
    Btn2.setBounds(200,60,150,30);
    Btn2.setFont(new Font("宋体",Font.BOLD,16));
    Btn3.setBounds(30,100,150,30);
    Btn3.setFont(new Font("宋体",Font.BOLD,16));                                                          
    Btn4.setBounds(200,100,150,30);
    Btn4.setFont(new Font("宋体",Font.BOLD,16));
    Btn5.setBounds(30,140,150,30);
    Btn5.setFont(new Font("宋体",Font.BOLD,16));
    Btn6.setBounds(200,140,150,30);
    Btn6.setFont(new Font("宋体",Font.BOLD,16));
    Btn7.setBounds(30,180,150,30);
    Btn7.setFont(new Font("宋体",Font.BOLD,16));
    Btn8.setBounds(200,180,150,30);
    Btn8.setFont(new Font("宋体",Font.BOLD,16));
    
   
    this.getContentPane().add(c);
  
    c.add(label);
    c.add(Btn1);
    c.add(Btn2);
    c.add(Btn3);
    c.add(Btn4);
    c.add(Btn5); 
    c.add(Btn6); 
    c.add(Btn7); 
    c.add(Btn8); 
    this.getContentPane().setBackground(Color.DARK_GRAY);
  Btn1.addActionListener(new java.awt.event.ActionListener()
    {
      public void actionPerformed(ActionEvent e) 
      {
        StudentTable a=new StudentTable();//学生表
      }
    });
    Btn2.addActionListener(new java.awt.event.ActionListener()
    {
      public void actionPerformed(ActionEvent e) 
      {
       TecherTable a=new TecherTable();//教师表
      }
    });
      
   Btn3.addActionListener(new java.awt.event.ActionListener()
    {
      public void actionPerformed(ActionEvent e) 
      {
       ClassTable  a=new ClassTable  ();//班级表
      }
    });
    Btn4.addActionListener(new java.awt.event.ActionListener()
    {
      public void actionPerformed(ActionEvent e) 
      {
      DepartmentTable a=new DepartmentTable();//院系表
      }
    });
    Btn5.addActionListener(new java.awt.event.ActionListener()
    {
      public void actionPerformed(ActionEvent e) 
      {
      CourseTable a=new CourseTable();//课程信息表
      }
    });
     Btn6.addActionListener(new java.awt.event.ActionListener()
    {
      public void actionPerformed(ActionEvent e) 
      {
      SelectedCourse a=new SelectedCourse();//选课信息表
      }
    });
    Btn7.addActionListener(new java.awt.event.ActionListener()
    {
      public void actionPerformed(ActionEvent e) 
      {
      Caozuo a=new Caozuo();             //教务系统管理
      }
    });
    Btn8.addActionListener(new java.awt.event.ActionListener()
    {
      public void actionPerformed(ActionEvent e) 
      { 
         System_Information a =new System_Information();                               //附加功能
      }
    });
 
 
 
 
   this.setVisible(true);
   
    }
 
 

  public static void main(String args[])
  {
    TeachingSystem a=new  TeachingSystem();
  }	

}       


⌨️ 快捷键说明

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