added error-prevention in JTabbedPaneControl-class