Results 1 to 2 of 2

Thread: implements

  1. #1
    danghieu is offline Member
    Join Date
    Apr 2010
    Posts
    11
    Rep Power
    0

    Default implements

    can u explane for me this code:
    private class TextFieldHandler implements ActionListener
    51 {
    52 // process text field events
    53 public void actionPerformed( ActionEvent event )
    54 {....

    thanks

  2. #2
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,368
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by danghieu View Post
    private class TextFieldHandler implements ActionListener
    51 {
    52 // process text field events
    53 public void actionPerformed( ActionEvent event )
    54 {....
    This class implements the ActionListener interface; the implementation starts at line 53 with the actionPerformed( ... ) method. This class has the 'private' qualifier so it must be an inner class (there is another top level class).

    kind regards,

    Jos

Similar Threads

  1. How hibernate implements jpa specification?
    By king9527 in forum Advanced Java
    Replies: 1
    Last Post: 02-05-2010, 10:53 AM
  2. Hashtable implements ActionListener ?
    By Zayaan in forum New To Java
    Replies: 5
    Last Post: 11-16-2009, 07:49 PM
  3. Adding 2 Implements to the class
    By jboy in forum New To Java
    Replies: 2
    Last Post: 10-23-2009, 05:19 AM
  4. HashSet and AbstractSet both Implements Set
    By rkjsohi2 in forum New To Java
    Replies: 1
    Last Post: 08-07-2008, 11:04 AM
  5. How to implements cryptation in a java
    By paul in forum Advanced Java
    Replies: 1
    Last Post: 08-07-2007, 05:06 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •