Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [platform-swt-dev] Inheritance and SWT

>>>> On a more fundamental level though, usually when someone wants to
subclass a widget, it's because they are trying to treat SWT as framework
and implement application logic, for example, in the widget itself. This is
the wrong way to use SWT. SWT widgets simply represent reasonable packagings
of the platform widget capabilities. Unless you find a platform which has a
widget that has your application logic embedded in its operating system
code, you shouldn't be trying to subclass an existing widget to implement
it.

Unfortunately, none of us are infallible; and the SWT designers aren't
either. I subclass widgets, because I enjoy subclassing widgets. It's my
hobby.



Back to the top