1 Feb 01:18
[groovy-user] Example: how to construct UI at the runtime with SwingBuilder (add/delete/replace component)
I've learned to construct UI view with SwingBuilder statically by declaring the components within application, frame, etc. However, for my application, I need to change the constructed the view, for example, remove a button, add another filed, etc. at the run-time. I figure that I could use the components of the panel to remove certain components. But how I can insert new components after an view is already built? I'm using Griffon. I find it hard to use multiple MVC groups, by switching to a new view, a new construction, as I want the controller to be the same, unless, I know how to make the new controller redirect to the original controller? I'm pretty new to Groovy/SwingBuilder, and Graffon. An example would be appreciated. Thank you in advance. Yu -- View this message in context: http://groovy.329449.n5.nabble.com/Example-how-to-construct-UI-at-the-runtime-with-SwingBuilder-add-delete-replace-component-tp5446147p5446147.html Sent from the groovy - user mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email(Continue reading)
RSS Feed