I am working on a Java desktop application, and sometimes my jmenubar shows up, sometimes it doesn\'t. When it doesn\'t the entire program freezes and I have to kill it.
<The essential rules are these:
Verify that all GUI elements are constructed on the event dispatch thread.
Verify that no exceptions are swallowed, especially on the event dispatch thread.
Note that the EDT will restart itself after an exception is thrown. Depending on the circumstances, the application may appear to freeze. Although you should see something on the console, the article Uncaught Exception Handlers may offer some insight.