aspose file tools
The moose likes Swing / AWT / SWT and the fly likes Making a diagram interactive??? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Making a diagram interactive???" Watch "Making a diagram interactive???" New topic

Making a diagram interactive???

Constanze Michaelis

Joined: Jul 28, 2004
Posts: 28
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.


Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
Here's one way to approach this. Written for j2se 1.5
Don't get me started about those stupid light bulbs.
subject: Making a diagram interactive???
It's not a secret anymore!