SceneBuilder src, or how to drag/size controls
richard.bair at oracle.com
Mon Feb 11 08:03:29 PST 2013
> 1. Removing the selectedborder styleclass does not remove the border. I actually have to switch to another styleclass to achieve this. Is this how it is supposed to be? I am afraid of removing any borders unrelated to the "selection":
That sounds like a bug to me. If David has power (he's under snow on the east coast) then I'd like to get his input (likely already a known issue and perhaps fixed in the latest).
> 2. The approach won't work with anything not in the Region hierarchy which introduces the border styling. So for any Shape I am not getting a selection border. I guess this would change with FX8 then?
> Alternatively, the selection border could be implemented by wrapping each child into a "layout private" AnchorPane - but that would expose a modified parent/child hierarchy to the outside which I'd like to avoid because node selection is an implementation detail.
The other issue is that if you have a Circle for instance you will get a rectangular selection instead of a circular selection.
I don't know that this would work for you, but also there might be the option of applying an outer glow effect to the selected node. If you can't change the effect property on the node itself, then wrapping it in a group is probably the best option.
More information about the openjfx-dev