Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Set system property to force applet to use Quartz renderer on Mac OS X 10.5 (Leopard)

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am developing heavy multimedia applet for the Mac which displays videos several and uses 2D animation.

Because of low performance of Sun renderer on Leopard (while scaling images, drawImage(), etc.) I have to use Quartz rendered instead (on Tiger it is enabled by default). It works fine on stand-alone client version - I use "-Dapple.awt.graphics.UseQuartz=true" to force using the Quartz.
In the applet there is a problem with setting this property to true. If I call System.setProperty("apple.awt.graphics.UseQuartz", "true"); it sets the property and getProperty afterwards returns true, but there is no effect, applet continue using Sun default renderer.
I tried to call setProperty from init() and from static block - but both don't work.

Can anybody advice how to force the applet to use Quartz renderer?

Important detail: the applet is signed.

My configuration is:
iMac 4,1 (Intel Duo 1.8, Radeon x1600), the same problem is also on MacBook
Mac OS X 10.5.6 (Leopard)
Java: 1.5.0_16

Thanks, Vladimir
 
Rancher
Posts: 43011
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can set applet runtime parameters in the "Java Preferences" app. On my system it's in the Application/Utilities/Java/J2SE 5.0 folder, but YMMV.
 
Vladimir Dmi
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Ulf Dittmer wrote:You can set applet runtime parameters in the "Java Preferences" app. On my system it's in the Application/Utilities/Java/J2SE 5.0 folder, but YMMV.


Setting this localy is not a problem, the problem is to set this parameter for all users by default from the applet, i.e. the user don't have to change anything on his PC to the applet.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!