I am using JTabbedPane and I am having some painting problems. Whenever I switch tabs, there is residual painting from the previous tab. How can I get rid of this behavior? I have tried the following:
//Trying to fix bad painting when switching tabs...
public void stateChanged(ChangeEvent e)
JComponent comp = (JComponent)tabPane.getComponentAt(tabPane.getSelectedIndex());
This did not correct the problem though. Has anyone ran across this same problem before, and if so how did you correct it?