@Override
        public void keyPressed(KeyEvent e) {
          if (e.getKeyCode() == KeyEvent.VK_ENTER) {
            if (trySave()) {
              stopEdit(e);
            }
            else {
              e.consume();
            }
          }
          else if (e.getKeyCode() == KeyEvent.VK_ESCAPE) {
            stopEdit(e);
          }
        }
@Override
        public void keyPressed(KeyEvent e)