JavaFX suggestions from Alex Kishko

David Grieve david.grieve at
Fri Feb 21 09:22:31 PST 2014

On 2/21/14, 11:36 AM, Aliaksei Kishko wrote:
> Hello.
> I allow me to express several opinions on the JavaFX:
> 5) Styles need get pseudo classes via setStyle(), for example:
> menuItem.setStyle(":focused {-fx-background-color: yellow;}");
The Node#setStyle(String) API is analogous to the 'style' attribute of 
HTML. To my knowledge, the style attribute in HTML does not allow for 
pseudo-class state.

This kind of functionality does fall under the umbrella of and I encourage you to add 
your comments there.
> 6) Custom properties need be realized in easier manner as pseudo classes
> and StyleableProperty inheritance. In my prototype I use my own wrapper,
> but I think that it need be a part of JavaFX.
I'm not sure what you mean here. What is it your wrapper does?

More information about the openjfx-dev mailing list