www.pudn.com > student.rar > ModifySituation.java


import javax.swing.JButton; 
import java.awt.event.ActionEvent; 
import java.awt.event.ActionListener; 
 
class ModifySituation extends Inquest 
{//学生信息修改类 
	private JButton modify = new JButton("保存"); 
	private ActionListener listener = new Listener(); 
	 
	private class Listener implements ActionListener 
	{//监听器 
		public void actionPerformed(ActionEvent e) 
		{ 
			if(e.getActionCommand().equals("保存")) 
			{ 
				save();	 
			}	 
		} 
		private void save() 
		{//保存修改的数据 
			 
		} 
	} 
	public ModifySituation(String title) 
	{//构造方法 
		super(title); 
		super.resetButton(modify,listener); 
	} 
	 
	public void show() 
	{//显示方法 
		super.show(); 
		editable = true;//设置为可以编辑	 
	} 
}