This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
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 OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 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
subject: Making a diagram interactive???
jQuery in Action, 3rd edition