Menu

[Solved]Java Anyone Help Get Exact Output Following Geometry Add Remove Points Write Program Lets Q37217291

(JAVA) Can anyone help me to get exact same output asfollowing ?

============================================

Geometry: add and remove points

Write a program that lets the user click on a pane todynamically create and remove points. When the user left-clicks themouse (primary button), a point is created and displayed at themouse point. The user can remove a point by pointing to it andright- clicking the mouse (secondary button). Make the colors ofcircles randomly.

  • To get all circles in the pane:

ObservableList<Node> list =pane.getChildren();

Write a for-loop to check each node in the list, if the nodecontainsthe point the mouse clicked, remove it.

list.get(i).contains(e.getX(),e.getY())

  • Sample output

Expert Answer


Answer to (JAVA) Can anyone help me to get exact same output as following ? ============================================ Geometry:… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *