Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Some swing components use wrong look and feel

 
Ron Strout
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic