This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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

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
I agree. Here's the link:
subject: Making a diagram interactive???
jQuery in Action, 3rd edition