I’m new to JavaFX, trying to use bind like this:
public function newCircle() : Circle {
Circle {
centerX: 1
radius: bind (centerX / prm._iMaxPop)
}
};
I get “Non-static variable centerX cannot be referenced from a static context.” Also tried using this.centerX with same result.
Thanks in advance.
Can add a temporary variable “c” which must be explicitly typed: