how to remove a component from a panel
i have a table attached to a scrollpane...the scroll pane is attached to the CENTER of a panel that have a borderlayout like this :
JScrollpane sp = new JScrollpane(table);
add(sp, BorderLayout.CENTER);
how to remove the table from the center....i have tried : remove(sp); and then calling revalidate(); but that did not work....
please help....
Thanks in advance

