Found the issue with un closable tabs, class cast exception, need to user SwingUtil.invokeLater()