Reputation: 13
There's no accordion in the component palette of gui builder 6.1 so I can't drag it onto the form, and the layered layout manager in the No Touch section doesn't have a name so I can't add it in code. How can I add an accordion to the layered layout in a gui builder form?
Upvotes: 1
Views: 99
Reputation: 52770
The GUI Builder allows you to drag a custom components into the GUI. Just pick the "custom component" from the palette and drag it into place.
Once you do that (and build the project) you will have a method with the signature:
private Component create_ComponentName() {
return new MyComponent();
}
Here you can return any arbitrary component instance, bind listeners and do any initialization code you want. The GUI builder will only be used as a layout tool in the case of that specific component and you would have the full power to place anything there.
See https://www.codenameone.com/blog/partners-demos-custom-gui-components-iphone-old-deprecation.html
Upvotes: 0