On Wed, Aug 8, 2012 at 8:12 PM, Roger L. Whitcomb
<[email protected]> wrote:
> Okay, I think the thing to do is this:
>
> myApp.startup(...) {
> ...
>         Theme.getTheme().set(TreeView.class, MyTreeSkin.class);
> ...
>
> Then you don't need a MyTreeview class at all, and when you instantiate a 
> TreeView it will automatically get the MyTreeSkin as its skin....
>
> See if that works.

Nope.

java.lang.IllegalArgumentException: java.lang.InstantiationException:
com.foobar.proto.main_proto$MyTreeSkin
        at org.apache.pivot.wtk.Component.installSkin(Component.java:834)
        at org.apache.pivot.wtk.TreeView.<init>(TreeView.java:924)
        at org.apache.pivot.wtk.TreeView.<init>(TreeView.java:908)
        at com.foobar.proto.main_proto.create_hosts_tree(main_proto.java:665)
        at com.foobar.proto.main_proto.startup(main_proto.java:837)


>
> ~Roger

thanks

Reply via email to