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

📄 50d6d944144f001d1dfab05036c3dc79

📁 学生管理系统.对学生信息管理的一个应用软件!
💻
字号:
import java .awt.*;
import java.awt.event.*;
import javax.swing.border.*;
import javax.swing.Box;
class Mypanel1 extends Panel implements ActionListener
{  Button searchButton;
   Box baseBox,boxV1;
   Label nameLabel,noLabel,classLabel;
   TextField nameText,noText,classText;
   Mypanel1()
   {    searchButton=new Button("查询");
	    nameLabel=new Label("姓名",Label.LEFT);
	    noLabel=new Label("学号",Label.LEFT);
	    classLabel=new Label("班级",Label.LEFT);
	    nameText=new TextField(10);
	    noText=new TextField(10);
	    classText=new TextField(10);
	    
	    boxV1=Box.createVerticalBox();
		boxV1.add(nameLabel);
	    boxV1.add(Box.createVerticalStrut(8));
	    boxV1.add(noLabel);
	    boxV1.add(Box.createVerticalStrut(8));
	    boxV1.add(classLabel);
		  
	    
	    baseBox=Box.createHorizontalBox();
	    baseBox.add(boxV1);
		 add(baseBox);
		  
	    nameText.addActionListener(this);
	    noText.addActionListener(this);
	    classText.addActionListener(this);
	    searchButton.addActionListener(this); 
   }
   
   public void actionPerformed(ActionEvent e)
   {
	   
   }
	
}

class searchWindow extends Frame implements ActionListener
{  Button menButton,marchButton,sureButton;
   Mypanel1 panel1;
   searchWindow(String s)
   {   super(s);
       setLayout(new FlowLayout());
	   panel1=new Mypanel1();
	   menButton=new Button("查人员");
	   marchButton=new Button("查分数");
       sureButton=new Button("查询");
       add(menButton);
       add(marchButton);
       add(sureButton);
       add(panel1);
       addWindowListener(new WindowAdapter()
    		          {  public void windowClosing(WindowEvent e)
                         {  System.exit(0);
                         }
    		          });
       setBounds(120,120,300,300);
       setVisible(true);
       validate();
    }
   public void actionPerformed(ActionEvent e)
   {   
	   
   }
	
}

public class search
{   public static void main(String args[])
   { searchWindow win=new searchWindow("使用管理权限");
	
   }
}

⌨️ 快捷键说明

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