5042c2a14c51001d12f0a358fcf3315f
来自「学生管理系统.对学生信息管理的一个应用软件!」· 代码 · 共 36 行
TXT
36 行
import java.awt.*;
import java.sql.*;
import java.awt.event.*;
import java.util.*;
import javax.swing.*;
class markText1 extends JFrame
{ 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 class markText
{ public static void main(String args[])
{ markText1 win=new markText1("成绩表");
}
} */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?