java - How to relayout a dialog in swt after the visibility of group inside it is set to false -
i have created dialog in swt inside there group gets visible when checkbox in dialog checked.how can kind of relayouting on setting visibility of group false , vice versa.pls suggest.
add selectionadapter
checkbox button , in widgetselected(selectionevent e)
method should make group visible (probably you'd want put on composite
, make composite visible can add more components if want) , call layout()
checkbox.addselectionlistener(new selectionadapter() { @override public void widgetselected(selectionevent e) { yourcomposite.setvisible(checkbox.getselection()); yourcomposite.layout(); } });
Comments
Post a Comment