Code example for JTextComponent

Methods: getSelectionStart

0
    myEditor = textComponentEditor;
  } 
 
  @Override 
  public int getSelectionStart() { 
    return myTextComponent.getSelectionStart();
  } 
 
  @Nullable 
  @Override 
  public VisualPosition getSelectionStartPosition() { 
    return null; 
  } 
 
  @Override 
  public int getSelectionEnd() { 
    return myTextComponent.getSelectionEnd();
  } 
 
  @Nullable