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...
Type: Posts; User: KevinWorkman
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...
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.
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...
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...