File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Some swing components use wrong look and feel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Some swing components use wrong look and feel" Watch "Some swing components use wrong look and feel" New topic
Author

Some swing components use wrong look and feel

Ron Strout
Greenhorn

Joined: Aug 01, 2013
Posts: 2
Our application uses a custom Synth based look and feel. On a couple of demo laptops, when new components get created do to some incoming event, the new components use a different look and feel.
Instead of using our Synth look and feel, the new components get created with the default ( Windows 7 ) look and feel. It is very strange. Other machines using the same java version, 1.7.0_25-b17, work correctly.

Any ideas?
Ron Strout
Greenhorn

Joined: Aug 01, 2013
Posts: 2
After further digging, it appears that we are running into an know bug in java 7 update 25.

http://bugs.sun.com/view_bug.do?bug_id=8017776

More info can be seen in these threads:

https://forums.oracle.com/thread/2552214
https://forums.oracle.com/thread/2552941
https://forums.oracle.com/message/11090709#11090709
https://forums.oracle.com/thread/2556898

Only a few of the machines have been updated to java 7 update 25, that is why not everyone would see it.
Most of us are still on java 7 update 21. Also, the problem ONLY occurs when the application is launched via JNLP.
When the app is launched view command line or IDE, everything works fine.

In a nutshell, update 25 broke how the AppContext is maintained. Instead of there being only 1, there are now several.
We have tried the workarounds listed in the bug and threads ( launch console with app, set the class loader in the
EventQueue, etc ... ) but none of them worked for us. We are going to uninstall update 25 and reload updte 21 on
the problem machines.

Good luck to anyone else that sees this. Hopefully Oracle will fix this soon.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Some swing components use wrong look and feel