title: Debugging Java Swing App causes computer freeze
body: <p>I'm developing a Java/Swing Desktop app on XUbuntu using Eclipse2018-12. I'm facing a problem when debugging. When Eclipse reaches a breakpoint in the <strong>addItemListener</strong> event of a <strong>JComboBox</strong>, all freezes, including the computer...</p>
  
  <p>I thought it was linked to the Java installation and the debug configuration, so I tried by changing the version of the JRE used but nothing changed. </p>
  
  <p>Here is the code of the </p>
  
  <pre class="lang-java prettyprint-override"><code>JComboBox&lt;ComboItem&gt; res = new JComboBox&lt;ComboItem&gt;();
          res.addItemListener(new ItemListener() {
              @Override
              public void itemStateChanged(ItemEvent event) {
                  if (event.getStateChange() == ItemEvent.SELECTED &amp;&amp; peopleCombo != null) {
                                             //do things
                      }
                  }
              }    
          });
          return res; 
  </code></pre>
  
  <p>Here is the java version.</p>
  
  <pre><code>java --version
  openjdk 11.0.2 2019-01-15
  OpenJDK Runtime Environment (build 11.0.2+9-Ubuntu-3ubuntu118.04.3)
  OpenJDK 64-Bit Server VM (build 11.0.2+9-Ubuntu-3ubuntu118.04.3, mixed mode, sharing)
  
  </code></pre>
  
  <p>Should I change this event ? Or the java version used ?</p>
  
  <p>Thanks for your help,</p>
  
  <p>Baptiste</p>