if (table instanceof SpreadSheet){
final SpreadSheet spreadSheet=(SpreadSheet)table;
JComponent edit = (component instanceof DateEditor.ExtDateField) ? ((DateEditor.ExtDateField)component).getTextField() : component;
edit.getActionMap().put("cut",new AbstractAction(){
public void actionPerformed(java.awt.event.ActionEvent e) {
spreadSheet.prepareAction(MenuActionConstants.ACTION_CUT).actionPerformed(new ActionEvent(spreadSheet,e.getID(),e.getActionCommand()));
}
});
edit.getActionMap().put("copy",new AbstractAction(){
public void actionPerformed(java.awt.event.ActionEvent e) {
spreadSheet.prepareAction(MenuActionConstants.ACTION_COPY).actionPerformed(new ActionEvent(spreadSheet,e.getID(),e.getActionCommand()));