Now that i can add a component dynamically, i would like to also remove it when needed.
How would i go about this, currently this is what im doing in my actionPerformed method:
if the checkbox is checked add the graph to the panel, if unchecked remove it from the panel. The problem is im making the panel on the fly so i cant use .remove to get rid of it, or can I? Here is my attempt
[ September 07, 2006: Message edited by: john latham ]
Hmm i see what you mean, but is it possible to add something i create as an anyonous class and remove it? Because i dont want to make a graph unless the user asks for it.