java

[알림판목록 I] [알림판목록 II] [글목록][이 전][다 음]
[ 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

[알림판목록 I] [알림판목록 II] [글 목록][이 전][다 음]
키 즈 는 열 린 사 람 들 의 모 임 입 니 다.