Possible additions to JavaFX to facilitate forms and validations

Roman Kennke roman at kennke.org
Tue Dec 6 08:34:09 PST 2011

Hi there,

First of all, let me say I like the idea. Seems like a useful addition
to JFX.

> > *1. Node annotations*
> A couple issues here to think about. First, how would the "annotation" be associated with the node? Since Nodes have no children (Parents do) it wouldn't be a child, in the scene graph sense, but it would be in how it is defined in paint order. That is, you want it to paint last. The picking code and such would need to be updated. Is the annotation outside the clip, if one exists on the node? Does it contribute to the bounds of the Node? If so we might have a contradiction to work through (the definition for boundsInLocal and boundsInParent would need massaging). Also I think for the use case you also will want annotations that can be beneath the Node.

My feeling is that doing this in Control rather than Node is more
natural. What would be the meaning/use case of an annotation on
arbitrary nodes? Like lines, or geometric objects?

Regards, Roman

More information about the openjfx-dev mailing list