< prev index next >

src/java.desktop/unix/classes/sun/awt/X11/XTextAreaPeer.java

Print this page

        

@@ -57,11 +57,10 @@
 import javax.swing.text.DefaultCaret;
 import javax.swing.text.JTextComponent;
 
 import javax.swing.plaf.BorderUIResource;
 import java.awt.im.InputMethodRequests;
-import sun.awt.CausedFocusEvent;
 import sun.awt.AWTAccessor;
 import sun.awt.SunToolkit;
 
 final class XTextAreaPeer extends XComponentPeer implements TextAreaPeer {
 

@@ -943,18 +942,20 @@
             }
         }
 
         void forwardFocusGained( FocusEvent e) {
             isFocused = true;
-            FocusEvent fe = CausedFocusEvent.retarget(e, this);
+            FocusEvent fe = new FocusEvent(this, e.getID(), e.isTemporary(),
+                    e.getOppositeComponent(), e.getCause());
             super.processFocusEvent(fe);
         }
 
 
         void forwardFocusLost( FocusEvent e) {
             isFocused = false;
-            FocusEvent fe = CausedFocusEvent.retarget(e, this);
+            FocusEvent fe = new FocusEvent(this, e.getID(), e.isTemporary(),
+                    e.getOppositeComponent(), e.getCause());
             super.processFocusEvent(fe);
         }
 
         @Override
         public boolean hasFocus() {
< prev index next >