setOpaque(true);
  public JTextComponent()  {    Keymap defkeymap = getKeymap(DEFAULT_KEYMAP);    if (defkeymap == null)      {        defkeymap = addKeymap(DEFAULT_KEYMAP, null);        defkeymap.setDefaultAction(new DefaultEditorKit.DefaultKeyTypedAction());      }    setFocusable(true);    setEditable(true);    enableEvents(AWTEvent.KEY_EVENT_MASK);    updateUI();  }