I recently updated my computer to a more powerful one, with a quad-core hyperthreading processor (i7), thus plenty of real concurrency available. Now I\'m occasionally>
I was getting a similar error and somehow this worked for me:
private static void createAndShowGUI() { JFrame jf = new MyProgram(); jf.setVisible(true); } public static void main(String[] args) { SwingUtilities.invokeLater(new Runnable() { public void run() { createAndShowGUI(); } }); }