Roman> This patch also makes Toolkit.createComponent() return a
GLightweightPeer
Roman> again. I got NullPointerExceptions with Swing applications otherwise
and
Roman> think we should do like Sun here and provide a default impl for
Roman> lightweight peers.
Roman> ...
Roman>        (createComponent): Create GLightweightPeer here.

I emphatically agree, but wasn't it already doing that?

Exerpt from the patch (java/awt/Toolkit.java):

protected LightweightPeer createComponent(Component target)
{
- return new gnu.java.awt.peer.GLightweightPeer (target);
+ return new GLightweightPeer(target);
}


Reply via email to