mainTabbedPane.add(plugin.getPanel(), plugin.getPluginName());
final JPanel panel = plugin.getPanel(); if (panel != null) { SwingUtilities.invokeLater(new Runnable() { public void run() { mainTabbedPane.add(panel, plugin.getPluginName()); } }); }
    public void addPlugin(SwingPlugin plugin) {        if (_plugins == null) {            _plugins = new ArrayList();        }        _plugins.add(plugin);        mainTabbedPane.add(plugin.getPanel(), plugin.getPluginName());    }