src/solaris/classes/sun/awt/X11/XTextAreaPeer.java

Print this page

        

*** 461,477 **** repaintText(); } protected boolean setTextImpl(String txt) { if (jtext != null) { - // Please note that we do not want to post an event - // if setText() replaces an empty text by an empty text, - // that is, if component's text remains unchanged. - if (jtext.getDocument().getLength() == 0 && txt.length() == 0) { - return true; - } - // JTextArea.setText() posts two different events (remove & insert). // Since we make no differences between text events, // the document listener has to be disabled while // JTextArea.setText() is called. jtext.getDocument().removeDocumentListener(jtext); --- 461,470 ----