Hello,
i've made a graphical component (some kind of rule like the one of word). When the use left click on it, a small shape is added. Right click delete one shape, and you can move all the shapes.
Now i need to know somewhere else when such events occurs. So i don't know what to do:
- the "event" way
- the "property" way
the event way suppose:
- 3 fire methods
- an event class
- 1 listener interface
- 1 addListener method
- is that all?
the property way require:
- ???
Does anybody know how to best achive what i want? What is the best way?
TIA
Nomak - 06 Sep 2005 10:57 GMT
> Hello,
>
[quoted text clipped - 13 lines]
> the property way require:
> - ???
i found this:
http://java.sun.com/docs/books/tutorial/javabeans/properties/bound.html
using a bound property seems a lot simpler.
Any paper about the comparaison between the two ways (event or bound preperty), especialy for Swing is still welcome.
TIA