Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / September 2005

Tip: Looking for answers? Try searching our database.

Firing events or changing properties for a custom made graphical component

Thread view: 
Nomak - 05 Sep 2005 12:38 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.