WComponentPeer(Component target) { this.target = target; this.paintArea = new RepaintArea(); create(getNativeParent()); // fix for 5088782: check if window object is created successfully checkCreation(); createScreenSurface(false); initialize(); start(); // Initialize enable/disable state, turn on callbacks }
WComponentPeer(Component target) { this.target = target; this.paintArea = new RepaintArea(); Container parent = WToolkit.getNativeContainer(target); WComponentPeer parentPeer = (WComponentPeer) WToolkit.targetToPeer(parent); create(parentPeer); // fix for 5088782: check if window object is created successfully checkCreation(); createScreenSurface(false); initialize(); start(); // Initialize enable/disable state, turn on callbacks }