I am trying to fill a shape with an imageIcon and I keep getting an error saying that it should be converted to a paint. I am afraid I don't know how to do it. I have read quite a few examples from different sources but they are not using swing. The code below shows one of the ways I was trying to achieve that. Thanks in advance!
Circle cir2 = new Circle(250,250,120);
cir2.setFill(profileSidebar.getImage());