posted 19 years ago
Hi I implemented what youre talking about by basically adding all possible widgets first. then, when i want a widget to change, i simply add in the widget which invokes that change, an action listener i.e.
//widget A causes widget B to apper
Button a = new Button(parent,SWT.NONE);
final Button b = new Button(parent,SWT.NONE);
b.setVisible(false);
widgetA.addActionListener(
new ActionListener()
{
public actionPerformer(actionEvent arg0)
{
b.setVisible(true);
}
}
}