Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.21 seconds.

  1. Re: Could you explain this code to me please?

    Quite probably. You can test this out yourself. I created this class:

    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;

    public class InnerClassTest {
    public static...
  2. Re: Could you explain this code to me please?

    Yeah, that syntax can take some getting used to. But it's just an anonymous inner class. Once you know how they work, you'll start using them all the time.
  3. Re: Could you explain this code to me please?

    I can try.



    It has to be an ActionListener. Note that ActionListener is an interface, so the actual instance is going to be a class that implements ActionListener, or a class that inherits from...
  4. Re: Could you explain this code to me please?

    If I'm understanding your question correctly, you're asking about the anonymous inner class there. That term is a good place to start a google search, but here's an article explaining your example...
Results 1 to 4 of 4