Ron King wrote:

I want to make squiggle into a paint program. I would like to be able to click on an image, and change the color of the node that i clicked on. I would use a JColorChooser dialog. Several questions:
1. Has someone already done this?

Not that I have seen.


2. Do I have to add an event listener for every node in the document, or can I just add a listener to the root node?

You can add a listener to just the root node (we do the full DOM capture, bubble). evt.target will be the element that triggered the event.

3. Is there a code snippet somewhere that would guide me in doing this?

Not that I am aware of.





--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to