title: java 130 Process finished with exit code 130
body: <p>I wish test the code <strong>(below)</strong> for a future project.</p>
  <p>I display all contPanel.</p>
  <p>I select several contPanel object.</p>
  <p>I delete only the selected contPanel with the jButton</p>
  <p>It rests other contPanel in the frame after deletion of the selected contPanel.</p>
  <p>but all the content don't display and I get the error message:</p>
  <blockquote>
  <p>Disconnected from the target VM, address: '127.0.0.1:60359', transport: 'socket'</p>
  </blockquote>
  <blockquote>
  <p>Process finished with exit code 130 (interrupted by signal 2: SIGINT)</p>
  </blockquote>
  <p>Where am I wrong ?
  What can I do?
  The intellij's update doesn'change anything.</p>
  <p><strong>Me:</strong></p>
  <p>1)</p>
  <p>ubuntu 20.04</p>
  <ol start="2">
  <li>intellij</li>
  </ol>
  <p>IntelliJ IDEA 2020.3 (Community Edition)
  Build #IC-203.5981.155, built on November 30, 2020
  Runtime version: 11.0.9+11-b1145.21 amd64
  VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
  Linux 5.4.0-56-generic
  GC: ParNew, ConcurrentMarkSweep
  Memory: 1981M
  Cores: 8
  Non-Bundled Plugins: com.jetbrains.edu
  Current Desktop: ubuntu:GNOME</p>
  <ol start="3">
  <li>java</li>
  </ol>
  <p>java-1.8.0-openjdk-amd64</p>
  <pre><code>package suggests.deleteCorrectItem;
  import javax.swing.*;
  import java.awt.*;
  import java.awt.event.ActionEvent;
  import java.awt.event.ActionListener;
  import java.util.ArrayList;
  
  public class Main extends JFrame{
      public ArrayList&lt;Integer&gt; alInteger = new ArrayList&lt;Integer&gt;();
      public ArrayList&lt;ContPanel&gt; alContPanel = new ArrayList&lt;ContPanel&gt;();
      public JPanel mainPanel = new JPanel();
      public int widthFrame = 700;
      public int heightFrame = 120;
      public Dimension dimensionFrame = new Dimension(widthFrame, heightFrame);
      public JScrollPane jScrollPane;
      public JButton jButtonDeleteAll =  new JButton();
      public DeleteListener deleteListener = new DeleteListener();
      public ContPanel contPanel;
  
      public static void main(String[] args){
          Main myMain = new Main();
      }
      public Main(){
          frameInitialization();
          setBackground(Color.BLUE);
          mainPanel.setBackground(Color.red);
          initObjects();
          buildLayout();
          setVisible(true);
      }
      public void frameInitialization(){
          this.setTitle(&quot;fenêtre de test&quot;);
          this.setSize(dimensionFrame);
          this.setResizable(true);
          this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          addScrollPaneFrame();
      }
      public void addScrollPaneFrame(){
          jScrollPane = new JScrollPane(mainPanel);
          jScrollPane.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
          jScrollPane.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
          add(jScrollPane);
      }
      public void initObjects(){
          for ( int i = 0; i&lt; 15;i++){
              alInteger.add(i);
               contPanel = new ContPanel(alInteger.get(i));
              contPanel.setBackground(Color.green);
              alContPanel.add(contPanel);
          }
          jButtonDeleteAll.addActionListener(deleteListener);
  
      }
      public void buildLayout(){
          mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.PAGE_AXIS));
          jScrollPane.add(mainPanel);
          fillOfContPanel();
          setContentPane(jScrollPane);
  
      }
      public void fillOfContPanel(){
          for (int i = 0; i&lt; alInteger.size(); i++){
              mainPanel.add(alContPanel.get(i));
          }
      }
      class ContPanel extends JPanel{
          public Integer integ;
          public JLabel jLabel = new JLabel();
          public JCheckBox jCheckBox = new JCheckBox();
          public ContPanel(Integer integ){
              setBackground(Color.BLACK);
              this.integ = integ;
              jLabel.setText(this.integ.toString());
              add(jLabel);
              add(jCheckBox);
          }
      }
      class DeleteListener implements ActionListener {
          @Override
          public void actionPerformed(ActionEvent actionEvent) {
              mainPanel = new JPanel();
              for(int i = alContPanel.size()-1; i&gt;= 0 ; i--){
                  if(alContPanel.get(i).jCheckBox.isSelected()){
                      alInteger.remove(i);
                      alContPanel.remove(i);
                  }
              }
          }
      }
  }
  
  </code></pre>