*/
public void setupJTextComponent(JTextComponent ta) {
// Set up key bindings and focus listener for the FieldEditor.
InputMap im = ta.getInputMap(JComponent.WHEN_FOCUSED);
ActionMap am = ta.getActionMap();
// im.put(KeyStroke.getKeyStroke(GUIGlobals.closeKey), "close");
// am.put("close", closeAction);
im.put(prefs.getKey("Entry editor, store field"), "store");
am.put("store", storeFieldAction);
im.put(prefs.getKey("Entry editor, next panel"), "right");
im.put(prefs.getKey("Entry editor, next panel 2"), "right");
am.put("right", switchRightAction);
im.put(prefs.getKey("Entry editor, previous panel"), "left");
im.put(prefs.getKey("Entry editor, previous panel 2"), "left");
am.put("left", switchLeftAction);
im.put(prefs.getKey("Help"), "help");
am.put("help", helpAction);
im.put(prefs.getKey("Save database"), "save");
am.put("save", saveDatabaseAction);
im.put(Globals.prefs.getKey("Next tab"), "nexttab");
am.put("nexttab", frame.nextTab);
im.put(Globals.prefs.getKey("Previous tab"), "prevtab");
am.put("prevtab", frame.prevTab);
try {
HashSet<AWTKeyStroke> keys = new HashSet<AWTKeyStroke>(ta
.getFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS));
keys.clear();