e0f953d86b4f001d174bd50f6d5c7d09

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

TXT
39
字号
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import javax.swing.*;
class courseText1 extends JFrame implements ActionListener
{   TextArea text1;
    Label label1,label2,label3;
    Button buttonSure;
    courseText1(String s) 
    { super(s);
      setLayout(new FlowLayout());
      text1=new TextArea(15,20);
      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 courseText
//{   public static void main(String args[])
    //{ courseText1 win=new courseText1("成绩表");
    //}
//} 

⌨️ 快捷键说明

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