Skip to main content

Applet friendly

1 reply [Last post]
Joined: 2004-11-03

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 {
// !Boolean.getBoolean("com.sun.scenario.scenegraph.skippaint");
boolean dontSkipPaint = true;
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.
Joined: 2005-11-15

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.