I have a guicontroller class which shows a black circle. And I've made this method inside that guicontroller class to change the color of the circle. Object light is a Circle.
public void getLight(){
light.setFill(Color.RED);
}
When I call this function from a different class with the use of:
guicontroller ctrl = new guicontroller();
ctrl.getLight();
nothing happens in my gui, it calls the getLight() method but does not fill the circle.