d091d3f7624f001d174bd50f6d5c7d09

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

TXT
35
字号
import java.awt.*;
import java.awt.event.*;
import java.util.*;
class markText1 extends Frame implements ActionListener
{   TextArea text1;
    Button buttonClear;
    markText1(String s) 
    { setLayout(new FlowLayout());
      text1=new TextArea(6,15);
      buttonClear=new Button("确定");
      add(text1);
      add(buttonClear); 
	  addWindowListener(new WindowAdapter()
	                  { public void windowClosing(WindowEvent e)
						{  System.exit(0); 
	                    }
	                  }   	  
	                );

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

⌨️ 快捷键说明

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