A scatter plot displays data from an XYDataset. In this example, a mouse listener is used to write the axis coordinates to standard output whenever the mouse is clicked.
XYDataset