MyEventHelper helper = new MyEventHelper(e); if (SwingUtilities.isEventDispatchThread()) helper.run(); else SwingUtilities.invokeLater(helper);
if (!initialBuildDone) { MyEventHelper helper = new MyEventHelper(e); if (SwingUtilities.isEventDispatchThread()) helper.run(); else SwingUtilities.invokeLater(helper); initialBuildDone = true; }
    public void stateChanged(ChangeEvent e) {        MyEventHelper helper = new MyEventHelper(e);        if (SwingUtilities.isEventDispatchThread())            helper.run();        else SwingUtilities.invokeLater(helper);    }