0 Replies Latest reply on Jan 12, 2003 8:13 PM by 807577

    Please stop JOptionPane from bugging me

    807577
      I am having problems with writing a GUI. I think I have distilled the problem down to one related to looping a JOptionPane. Does anyone know anything that will help me eliminate this problem (or bug)?

      <code>
      /*
      * This code results in a Win98 Ddhelp error
      * It make Windows permanently unstable.
      */

      for ( int i=o ; i<2 ; i++ ){
      JoptionPane.showMessageDialog(null, "Count is " + i);
      }
      System.exit(0);

      /*
      * Whereas this causes no problems
      */

      int i=0;
      JoptionPane.showMessageDialog(null, "Count is " + i);
      int i=1;
      JoptionPane.showMessageDialog(null, "Count is " + i);
      System.exit(0);
      </code>