Interface implementation syntax sugar with SWT ?
posted 6 years ago
That's an anonymous inner class example. That's probably the only place you will apply "new" keyword to the name of an interface. That's how you create an object of a class which implements an interface. The class implementing the interface becomes anonymous here as you have a reference of type interface to an object of that class. Nested classes from SUN tutorials gives you a brief explanation.
Jesper de Jong