return textComp.getSelectionStart();
return JTextComponent.this.getSelectionStart();
    public int getSelectionStart()    {      if (getSelectedText() == null || (textComp.getText().equals("")))        return 0;      return textComp.getSelectionStart();    }