Question: Write a program that lets the user click on the panel to dynamically create points. Initially, the panel is empty. When a panel has two or more points, highlight the pair of closest points. Whenever a new point is created, a new pair of closest points is highlighted.
Q: Display the points using small circles and highlight the points using filled circles.
Solve this Program using java programming concepts.