I'm programming a complicated Applet with a lot of functions. Because of just a bit experiences with java several problems occure. I'm showing a graph with the paint(Graphics g) Method. Thats why I paint the graph with g.drawPolyline(...) . Now I would like to know, if there is any possibility to add a Listener, because I would like to show the exact values in a textfield, after the user clicked the graph.