e056078b15fe001513a9d15e9bef4c71

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

TXT
39
字号
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import javax.swing.*;
class markText1 extends JFrame implements ActionListener
{   TextArea text1;
    Label label1,label2,label3;
    Button buttonSure;
    markText1(String s) 
    { super(s);
      setLayout(new FlowLayout());
      text1=new TextArea(10,33);
      buttonSure=new Button("确定");
      label1 =new Label("学号");
      add(label1);
      label2 =new Label("姓名");
      add(label2);
      label3 =new Label("课程名");
      add(label3);
      add(text1);
      add(buttonSure); 
      this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);

      //text1.setEditable(false);
      buttonSure.addActionListener(this);
      setBounds(100,100,350,300);
      setVisible(true);
      validate();
    }
   
    public void actionPerformed(ActionEvent e) 
    {  
    }
}
//public class markText
//{   public static void main(String args[])
 //   { markText1 win=new markText1("成绩表");
 //   }
//} 

⌨️ 快捷键说明

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