Click to See Complete Forum and Search --> : Quick MouseEvent questions
august
11-26-2005, 12:32 AM
1) Is there any way to determine a button's text in a mouseEvent?
2) And in more general, where can you find out about all the different event properties that exist for the event handlers? I meant things like event.getSource(), event.getY(), event.target etc, where can you learn about all of them? Thanks.
Nowhere on earth has this ever been documented. Most tutorials are too general.
Khalid Ali
11-26-2005, 12:24 PM
go to java.sun.com and look for java API docs....
Waylander
11-27-2005, 02:35 AM
If you want to find documentation for java then google is your best friend...
There is search listing for keywords in the java documentation you just write in Java first then the name of the class your after,
http://www.google.com.au/search?hl=en&q=Java+MouseEvent&meta=
Im not sure if thats the specific object your after but if you know the name of it, it should definately come up first search result. Sun and Google have a keyword thing for the java docs.. i actually prefer to use it before browsing suns site or look in indexes and tables of contents. Because you can get direct code referencees much faster with it and if your familiar with the java naming conventions you can guess object names pretty easily too.
Waylander.
august
11-27-2005, 05:22 AM
So I've been using the Java "keyword" without knowing it. I usually just type in the searchword and then type in "java" either before or after, and sometimes with a comma in between, or a plus sign, or whatheheck, not knowing exactly what matters and not, but now I may know. Thanks.