Search:

Type: Posts; User: TP-Oreilly

Search: Search took 0.12 seconds.

  1. Thread: Interfaces

    by TP-Oreilly
    Replies
    14
    Views
    2,292

    Re: Interfaces

    Oh yeah :)
  2. Thread: Interfaces

    by TP-Oreilly
    Replies
    14
    Views
    2,292

    Re: Interfaces

    As an ActionListener is an interface, how can i add an instance of this? Because interfaces cant be instantiated can they.
  3. Thread: Interfaces

    by TP-Oreilly
    Replies
    14
    Views
    2,292

    Re: Interfaces

    ... i am adding the method actionPerformed to the fileItem object, and whenever an action occurs on this object the actionPerformed method is called?
  4. Thread: Interfaces

    by TP-Oreilly
    Replies
    14
    Views
    2,292

    Re: Interfaces

    I know that :), i couldnt be bothered to write it all out. So by writing:

    "fileItem.addActionListener(new ActionListener(){

    public void actionPerformed(ActionEvent e){
    code....
    }...
  5. Thread: Interfaces

    by TP-Oreilly
    Replies
    14
    Views
    2,292

    Re: Interfaces

    So when I do "fileItem.addActionListener(new ActionListener(){});", I am adding a method named "actionPerformed" to the fileItem object?
  6. Thread: Interfaces

    by TP-Oreilly
    Replies
    14
    Views
    2,292

    Re: Interfaces

    Ahh I get what your saying.
  7. Thread: Interfaces

    by TP-Oreilly
    Replies
    14
    Views
    2,292

    Interfaces

    I have looked up interfaces. Are interfaces similar to classes except they they only contain empty methods?
Results 1 to 7 of 7