if (swingComponent != null) { JComponent c = swingComponent.getJComponent(); if (c != null) { c.addNotify(); RepaintManager.currentManager(c).setDoubleBufferingEnabled(false); System.setProperty("gnu.awt.swing.doublebuffering", "true"); } }    if (! (this instanceof LightweightPeer)) { Component comp = awtComponent; Container parent = comp.getParent(); while (parent != null && ! (parent.getPeer() instanceof SwingContainerPeer)) { comp = parent; parent = comp.getParent(); }    if (parent != null && parent.getPeer() instanceof SwingContainerPeer) { SwingContainerPeer p = (SwingContainerPeer) parent.getPeer(); p.addHeavyweightDescendent(awtComponent); } }
  protected void init(Component awtComp, SwingComponent swingComp)  {    awtComponent = awtComp;    swingComponent = swingComp;  }