Hey
I want to delete a panel from a tabbedPane from a separate class. The class extends the main form which contains the tabbedPane and panel
So i have a class -
public class delete extends form {
public void main() {
tabbedPane.remove(panel);
}
}
This class is called using this method in the main frame
delete delClass = new delete();
delClass.main();
I have added a print statement in the class, and it prints out so the main method from the delete class runs, but the panel doesn't get removed
any idea??

