예제 #1
0
 @SuppressWarnings("deprecation")
 private void replaceSurfaceDataRecursively(Component c) {
   if (c instanceof Container) {
     for (Component child : ((Container) c).getComponents()) {
       replaceSurfaceDataRecursively(child);
     }
   }
   ComponentPeer cp = c.getPeer();
   if (cp instanceof WComponentPeer) {
     ((WComponentPeer) cp).replaceSurfaceDataLater();
   }
 }
예제 #2
0
 public void dispatchEvent(AWTEvent e) {
   if (e instanceof ComponentEvent) {
     Component comp = ((ComponentEvent) e).getComponent();
     if (comp == awtFocussedComponent) {
       if (awtFocussedComponentPeer == null || awtFocussedComponentPeer.isDisposed()) {
         awtFocussedComponentPeer = getNearestNativePeer(comp);
       }
       if (awtFocussedComponentPeer != null) {
         handleNativeIMEEvent(awtFocussedComponentPeer, e);
       }
     }
   }
 }