Skip to main content

Applet friendly

1 reply [Last post]
mortennobel
Offline
Joined: 2004-11-03
Points: 0

There is a minor bug in 0.4.1 that prevents Scene Graph from working in an unsigned applet.

The problem comes from SGLeaf, where the static initializer throws an Exception.

A workaround could be:

public abstract class SGLeaf extends SGNode {
private Rectangle2D subregionBounds;
final static boolean DONT_SKIP_PAINT;

static {
// DONT_SKIP_PAINT =
// !Boolean.getBoolean("com.sun.scenario.scenegraph.skippaint");
boolean dontSkipPaint = true;
try{
dontSkipPaint = !Boolean.getBoolean("com.sun.scenario.scenegraph.skippaint");
}
catch (Exception e){
e.printStackTrace(); // modified
}
DONT_SKIP_PAINT = dontSkipPaint;

}

- Morten

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
bchristi
Offline
Joined: 2005-11-15
Points: 0

Thanks for reporting this, Morten.

We've seen this problem as well. The good news is that a fixed SGLeaf is already checked into the SVN repository.

-Brent