📄 40913db16b4f001d174bd50f6d5c7d09
字号:
import java.awt.*;
import java.awt.event.*;
import java.util.*;
import javax.swing.*;
import javax.swing.WindowConstants;
class courseText1 extends JFrame implements ActionListener
{ TextArea text1;
Button buttonClear;
courseText1(String s)
{ super(s);
setLayout(new FlowLayout());
text1=new TextArea(15,20);
buttonClear=new Button("确定");
add(text1);
add(buttonClear);
this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
//text1.setEditable(false);
buttonClear.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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -