[ java ] in KIDS 글 쓴 이(By): klee1 () 날 짜 (Date): 1999년 6월 11일 금요일 오전 02시 24분 11초 제 목(Title): Re: [q] text area 안에서 글쓸때 auto wrap When you want to update the contents in a TextArea after creating a TextArea, I used 'replaceRange' and 'append'. the following is an example I used: public void replace(TextArea tarea) { TextArea to = new TextArea(" "); String f = this.ttext.getText(); this.ttext.replaceRange(to.getText(),0,f.length()); this.ttext.append(tarea.getText()); ttext.setFont(new Font("Courier",Font.BOLD, 13)); } Hope this helpful... Kelly |