[icedtea-web] RFC: fix L&F issues with swing applications
omajid at redhat.com
Thu Mar 1 13:05:25 PST 2012
The attached patch fixes a regression in icedtea-web 1.2 that occurs
with some jnlp applications (such as
http://www.soapui.org/jnlp/soapui.jnlp) where they are unable to set the
look and feel for dialogs.
The actual problem was not just limited to that. It turns out that we
were not setting the right classloader for EventQueue - this classloader
is used by EventQueue to obtain Look-and-Feel related classes (among
other things). The only time to set this classloader is when the
EventQueue is being created. And the EventQueue is created when a new
AppContext is created, and the current context classloader of the thread
The attached patch (I have tried to keep it minimal) tires to fix this
problem by creating the JNLPClassLoader as early as possible and then
sets it as the context ClassLoader for jnlp applications.
I suspect applets may be affected by similar issues, but I don't have a
reproducer showing a problem and this patch doesn't change anything for
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 7643 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20120301/9fbc3249/early-classloader-04.patch
More information about the distro-pkg-dev