NC调用刷新按钮和自己加的按钮
刷新按钮
1 import java.awt.event.ActionEvent; 2 3 RefreshSingleAction refreshaction = new RefreshSingleAction(); 4 refreshaction.setModel(this.getModel()); 5 ActionEvent e1 = new ActionEvent(refreshaction, 1001, "刷新"); 6 efreshaction.doAction(e1);
自己加的按钮
import java.awt.event.ActionEvent; CheckApplyBillAction checkapplybillaction = new CheckApplyBillAction(); checkapplybillaction.setModel(this.getModel()); ActionEvent e1 = new ActionEvent(checkapplybillaction, 0, "生成报检单"); checkapplybillaction.doAction(e1);