This content has been marked as final. Show 2 replies
The implementation of the hasProperties() method in the Node class returns true, if the ObservableMap object for storing properties has been created. That is not what is expected from this method. I think, this method should also check if the ObservableMap has any properties.
TextField nameField = new TextField(); System.out.println(nameField.hasProperties()); ObservableMap<Object, Object> props = nameField.getProperties(); System.out.println(nameField.hasProperties());