Style Question - OO or procedural

Shawn Liu shawn666.liu at
Mon Feb 20 06:34:14 PST 2006

"Charles" <noone at> says:dta2ut$2fih$1 at
> In the examples for DWT there are a couple different ways for GUI startup 
> ,
> such as making a class inherit from Composite, and showing the GUI via a
> static method showGUI()  ( dummyeclipse.d ) , and the other way of 
> creating
> the Shell in main () and passing it to your main GUI class.
> Not having done any real SWT programming im wondering which method is
> preferable ?

Some example was ported from Java which was generated by GUI Builder.
And it is always inherit from Composite or Shell or Dialog in order to
parse the initGUI() or initComponents() method to show the GUI desinger.

More information about the Digitalmars-d-dwt mailing list