aspose file tools*
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes comment on ActionListener Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "comment on ActionListener" Watch "comment on ActionListener" New topic
Author

comment on ActionListener

kevin chang
Ranch Hand

Joined: Mar 08, 2003
Posts: 64
i am using follow codes

but i am wondering should i write comments on ActionListerner class and it's actionPerformed() method, any suggestion!


Sun Certified Java Programmer, Sun Certified Java Developer. <br />Strving to be a real architect.
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11278
    
  59

Hi Kevin,
Standard rules apply ... if you think that the code is self explanitory, and can easily be understood by a junior programmer, then dont worry about comments.
But if there is even a chance that a comment or two will make the code easier to understand, then add a comment.
Moving away from your question, why have you marked your code block as transient?
Regards, Andrew


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
Note that there's no need for javadoc comments here. That is, there's a rule that all public methods must have javadoc comments - but that doesn't apply to methods of an anonymous class, since an anonymous class will not appear in javadoc's generated HTML API at all. So forget about javadoc comments here. Non-javadoc comments may still be appropriate, as Andrew suggests.


"I'm not back." - Bill Harding, Twister
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: comment on ActionListener
 
Similar Threads
comment on public method
Menu Item Event
return type of Event Listeners, ActionListener
Posting combo box to textarea.
why java creates a "myclass$1.class"