sbool isJTextComponentUndoEnabled(JTextComponent c) { ret c != null && containsKey(c.getActionMap(), "Undo"); }