JTextComponent t = getTextComponent(event); if (t != null) { t.getCaret().moveDot(Math.max(t.getCaret().getDot() - 1, t.getDocument().getStartPosition().getOffset())); }
JTextComponent t = getTextComponent(event); if (t != null) { t.getCaret().setDot(Math.max(t.getCaret().getDot() - 1, t.getDocument().getStartPosition().getOffset())); }
      public void actionPerformed(ActionEvent event)      {	JTextComponent t = getTextComponent(event);	if (t != null)	  {	    t.getCaret().moveDot(Math.max(t.getCaret().getDot() - 1,					  t.getDocument().getStartPosition().getOffset()));	  }      }