📄 60316a616a4f001d174bd50f6d5c7d09
字号:
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
class courseMess1 extends JFrame implements ActionListener
{ Button button1,button2,button3,button4;
TextField text1,text2,text3;
Label label1,label2,label3;
TextArea text;
courseMess1(String s)
{
super(s);
setLayout(new FlowLayout());
text=new TextArea(8,9)
button1=new Button("修改");
button2=new Button("确定");
button3=new Button("添加");
button4=new Button("删除");
label1 =new Label("课程编号");
// text1=new TextField(10);
add(label1);
// add(text1);
label2 =new Label("课程名");
// text2=new TextField(10);
add(label2);
// add(text2);
label3 =new Label("教师");
// text3=new TextField(10);
add(label3);
// add(text3);
add(button1);
add(button2);
add(button3);
add(button4);
button1.addActionListener(this);
button2.addActionListener(this);
button3.addActionListener(this);
button4.addActionListener(this);
// text1.addActionListener(this);
// text2.addActionListener(this);
// text3.addActionListener(this);
this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
setBounds(120,120,300,300);
setVisible(true);
validate();
}
public void actionPerformed(ActionEvent e)
{
}
}
public class CmessageManage
{ public static void main(String args[])
{ courseMess1 win=new courseMess1("学生信息") ;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -