private static final long serialVersionUID = -7066146333849901429L;
public static final String IGNORE_FOCUS = "ignoreFocus";
+ public static final String PICK_DISTANCE = "pickDistance";
protected transient Container rootPane = null;
// TODO: swing dependency in here might not be a good idea
return focusNode;
}
- @Override
+ @Override
public void render(Graphics2D g2d) {
- performCleanup();
+ refresh();
Component rootPane = getRootPane();
if (rootPane != null)
g2d.setRenderingHint(G2DRenderingHints.KEY_COMPONENT, rootPane);
}
}
+ @Override
+ public void refresh() {
+ performCleanup();
+ super.refresh();
+ }
+
/**
* Util method for executing updates to scenegraph tree
* NOTE: You should really consider performance issues when using this