Interface Question
I know you cannot create a new instance of an Interface like you do an object, for example: x = new EventListener();, where EventListener is an Interface. But I've seen in the tutorials and in NetBeans, when adding action events to components, they have the following code as an example:
txtBrowserURI.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
onLaunchBrowser(null);
}
});
Notice they have "new ActionListener()", which is an Interface. Can this be done since they are implementing it's defined method at the same time?
Thank you.

