I would directly subclass the widget class outside the fwt package, but the new make function of the widget class is internal.
DanielFathSat 10 Sep 2011
Yeah, I was stumped by that as well. Use either fwt::Pane or fwt::Canvas. If you need a container class extend fwt::Pane if it's a component then extend fwt::Canvas. IIRC that's done because JavaScript components are all made from Canvas.
brianSat 10 Sep 2011
Daniel is correct - it is designed that way because you should derive new widgets from Pane or Canvas. Other widgets derived directly from Widget are mapped to native components in SWT.
jessevdam Sat 10 Sep 2011
I would directly subclass the widget class outside the fwt package, but the new make function of the widget class is internal.
DanielFath Sat 10 Sep 2011
Yeah, I was stumped by that as well. Use either fwt::Pane or fwt::Canvas. If you need a container class extend fwt::Pane if it's a component then extend fwt::Canvas. IIRC that's done because JavaScript components are all made from Canvas.
brian Sat 10 Sep 2011
Daniel is correct - it is designed that way because you should derive new widgets from Pane or Canvas. Other widgets derived directly from Widget are mapped to native components in SWT.