Widget refuses to load with MigLayout

0 views
Skip to first unread message

Pär Dahlberg

unread,
Aug 10, 2009, 7:30:11 AM8/10/09
to widget...@googlegroups.com
This widget works:
var ml: MigLayout;
Widget {
    content: [
        Rectangle { width: 10, height: 10, fill: Color.BLACK }
    ]
}


While this doesn't:
var ml: MigLayout;
Widget {
    content: [
        ml = MigLayout {
            content: Rectangle { width: 10, height: 10, fill: Color.BLACK }
        }
    ]
}


Both of these work with Standard Execution and this also works with Web Start:
var ml: MigLayout;
Stage {
    scene: Scene {
        content: [
            ml = MigLayout {
                content: Rectangle { width: 10, height: 10, fill: Color.BLACK }
            }
        ]
    }
}

Can anyone else confirm this?

/M v h Pär
Welcome to my blog, mostly about programming: http://www.pmdit.se/blog

Pär Dahlberg

unread,
Aug 10, 2009, 10:35:48 AM8/10/09
to widget...@googlegroups.com
Forgot to mention the exception thrown when running as Widget;
ClassNotFoundException: net.miginfocom.layout.ContainerWrapper

However it's obviously present in the miglayout-3.7.jar since the project works when running as Stage for example. The jar is loaded by the widget runner since it get's logged as a "Resource updated" row in the console, but after that it seems to fail.


/M v h Pär
Welcome to my blog, mostly about programming: http://www.pmdit.se/blog


Reply all
Reply to author
Forward
0 new messages