| Article: |
10 Reasons We Need Java 3.0 | |
| Subject: | Steal Objective-C's selectors, use inner classes far less. | |
| Date: | 2002-08-06 06:34:33 | |
| From: | ewatkeys | |
|
One of the things I've always found painful with Swing is the need to define tons of inner classes to hook user interface elements to a method in a specific object. In a non-object oriented world, it would make sense to pass in a function pointer, and that's what AbstractAction and friends amount to. I believe that the C++ FAQ book calls such one-method objects functoids.
|
||
Women in Technology
Hear us Roar
