Use JFreeChart for making charts/plots. Use JTable for building tables.
In the JFreeChart demo, look at CrosshairDemo2 for an example - you click on the chart and the coordinate values are placed into a JTable. Java has a tutorial on JTable development you can follow.