-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 7u6
-
Component/s: javafx
Obscure little bug, but this code causes a flag to be set on focusTraversable that indicates the property was set by the user, which means it won't get overriden by css.
protected Control() {
setFocusTraversable(true);
}
The property should be initialized like so.
protected Control() {
StyleableProperty prop = StyleableProperty.getStyleableProperty(focusTraversableProperty());
prop.set(this, true, null);
}
protected Control() {
setFocusTraversable(true);
}
The property should be initialized like so.
protected Control() {
StyleableProperty prop = StyleableProperty.getStyleableProperty(focusTraversableProperty());
prop.set(this, true, null);
}