paint error inside a JTabbedPane