public void editText(String txt,Rectangle r){
  if (m_editing) {
    stopEditing();
  }
  m_editing=true;
  m_editor.setBounds(r.x,r.y,r.width,r.height);
  m_editor.setText(txt);
  m_editor.setVisible(true);
  m_editor.setCaretPosition(txt.length());
  m_editor.requestFocus();
}

public void editText ( String txt , Rectangle r ) { if ( m_editing ) { stopEditing ( ) ; } m_editing = true ; m_editor . setBounds ( r . x , r . y , r . width , r . height ) ; m_editor . setText ( txt ) ; m_editor . setVisible ( true ) ; m_editor . setCaretPosition ( txt . length ( ) ) ; m_editor . requestFocus ( ) ; }
show a text editing widget containing the given text and spanning the specified bounding box . use stopediting ( ) to hide the text widget . use the method calls gettexteditor ( ) . gettext ( ) to get the resulting edited text .
