Wesley Widner wrote:
> I?m having trouble with opening and deleting widgets and their
> properties. I can remove them from the document DOM but it eludes me as
> to how to tell the GUI that a widget has been added/removed.
well to visually remove the widget you can just call the
setVisible(false) method on the widget object. however, to actually
remove it from its parent container you must call the remove(Component)
method of the parent container passing it the widget to remove. but
remember to do this depth first to remove all the widgets beneath the
widget you wish to removing or you'll have resource leaks. also, don't
forget to remove the widget, its treepath and DOM path from the
correlation table.
work has been pretty busy getting things ready for the begining of
classes here next week so i haven't had many evenings to work on
bojangles. things should slow down in the next week or two once classes
start (i'm hoping :)).
later,
nre
|