Comment 7 for bug 1355182

Revision history for this message
Padraig Looney (padraig-looney) wrote :

I'ce spent a few hours creating a short self contained example. To reproduce this bug. Run the following in debug in eclipse with a breakpoint as directed in the code.

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JComboBox;
import javax.swing.JFrame;

public class WillCrash {

 public static void main(String[] args) {

  JComboBox<String> combo = new JComboBox<>();
  JFrame jf = new JFrame();
  jf.setExtendedState(JFrame.MAXIMIZED_BOTH);
  jf.getContentPane().add(combo);
  combo.addItem("Test 1");
  combo.addItem("Test 2");
  combo.addActionListener(new ActionListener() {

   @Override
   public void actionPerformed(ActionEvent e) {
    //Put break point here to crash your system
    System.out.println("Test");
   }
  });
  jf.setVisible(true);
  jf.pack();

 }

}