(Geometry: add and remove points) Write a program that lets the user click on a pane to dynamically create and remove points (see Figure 1a). When the user left-clicks the mouse (primary button), a point is created and displayed at the mouse point. The user can remove a point by pointing to it and right clicking the mouse (secondary button).
FIGURE 1 (a) Exercise allows the user to create/remove points dynamically. (b) Exercise displays two vertices and a connecting edge.

We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.