200b7f40ea50001d1d14f346b68412eb

来自「学生管理系统.对学生信息管理的一个应用软件!」· 代码 · 共 59 行

TXT
59
字号
import java.awt.*;

import javax.swing.*;

import java.awt.event.*;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

class markMess2 extends JFrame implements ActionListener
{   Button button1,button3,button4;
    TextField text1,text2,text3;
    Label label1,label2,label3;
    TextArea text;
    markMess2(String s)
    {
    	super(s);
    	setLayout(new FlowLayout());
    	text=new TextArea(10,33);
 	    button1=new Button("修改");
        button3=new Button("添加");
        button4=new Button("删除");
        label1 =new Label("学号");
        add(label1);
        label2 =new Label("课程名");
        add(label2);
        label3 =new Label("分数");
        TextField notext=new TextField(12);
        
        add(label3);
        add(text);
        add(button1);
        add(button3);
        add(button4);
        add(notext);
        button1.addActionListener(this);
        button3.addActionListener(this);
        button4.addActionListener(this);
       // text.setEditable(false);
        this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
        setBounds(120,120,300,300);
        setVisible(true);
  	    validate();
    }
    public void actionPerformed(ActionEvent e)
    {
 	   if(e.getSource()==button1){
 		
 	   }
	
    }
}
/*public class MmessageManage
{  public static void main(String args[])
{  markMess2 win=new markMess2("成绩管理") ;
 }
}*/

⌨️ 快捷键说明

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