JSlider — Advice needed

后端 未结 2 990
梦谈多话
梦谈多话 2021-01-21 20:41

I have a problem with JSlider in Java I have drawn a circle A, and I want to put ANOTHER circle B inside the first circle A. I want to place the CENTRE of the second circle B at

2条回答
  •  天涯浪人
    2021-01-21 21:06

    Because you have to change position of top-left "corner" of circle. If you change radius, the circle is bigger/smaller so it's obvious if you don't change position of top-left cornet, centers of 2 circles won't be aligned

提交回复
热议问题