Es ist wirklich wie verhext. Ich erstelle eine neue JTextArea. Ueber die ActionMap und den ActionKey hole ich mir diverse Actions. Meist klappt das auch aber manchmal sind die Actions die ich aus der ActionMap erhalte 'null'. Hierbei handelt es sich um identischen Code - lediglich 2 mal ausgefuehrt. Einmal klappt es ein anderes mal sind die Actions null.
Java:
ActionMap map = c.getActionMap();
final Action cutAction = getAction(map, DefaultEditorKit.cutAction, "Cut", CUTICON, "ctrl X");