src/macosx/classes/sun/lwawt/LWTextAreaPeer.java

Print this page

        

@@ -127,20 +127,10 @@
         }
         repaintPeer();
     }
 
     @Override
-    public void setText(final String l) {
-        // Please note that we do not want to post an event
-        // if TextArea.setText() replaces an empty text by an empty text,
-        // that is, if component's text remains unchanged.
-        if (!l.isEmpty() || getTextComponent().getDocument().getLength() != 0) {
-            super.setText(l);
-        }
-    }
-
-    @Override
     public void replaceRange(final String text, final int start,
                              final int end) {
         synchronized (getDelegateLock()) {
             // JTextArea.replaceRange() posts two different events.
             // Since we make no differences between text events,