Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Making a diagram interactive???

 
Constanze Michaelis
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi @ll,

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.

bye

Constanze
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's one way to approach this. Written for j2se 1.5
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic