I am using JtabbedPanel.
Have few components on the panel, using JCheckbox, on the itemstatechange event, panel1 should hide and panel2 should be visible.
Tried using
panel1.setVisible(false);

Any help will be appreciated.

Thanks