I am getting this warning: warning: [static] static method should be qualified by type name, AnchorPane, instead of by an expression
here is my code:
public Chart(Vector<String[]> v, final Pane p, final AnchorPane ap){
super();
this.v = v;
p.heightProperty().addListener(new ChangeListener<Number>() {
public void changed(ObservableValue<? extends Number> ov,
Number old_val, Number new_val) {
draw();
System.out.println(heightProperty().doubleValue()+" "+ap.getBottomAnchor(p));
}
});
}