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

Print this page

        

*** 308,318 **** } @Override public CanvasPeer createCanvas(Canvas target) { PlatformComponent platformComponent = createPlatformComponent(); ! LWCanvasPeer peer = new LWCanvasPeer(target, platformComponent); targetCreatedPeer(target, peer); peer.initialize(); return peer; } --- 308,318 ---- } @Override public CanvasPeer createCanvas(Canvas target) { PlatformComponent platformComponent = createPlatformComponent(); ! LWCanvasPeer<?, ?> peer = new LWCanvasPeer<>(target, platformComponent); targetCreatedPeer(target, peer); peer.initialize(); return peer; }