question: 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 ( ) ; }
target:  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.