1 Reply Latest reply: Jan 14, 2013 6:40 AM by fac586 RSS

    How to add time event to show jframe component one after another sequetial?

    831755
      I want to create the visual expression of merge sort to explain it.

      So what I want is first in textbox initial sequence of number. And the subsequently next state with some time delay sequentially.

      Can any one tell me how to do.
      I tried by creating Thread like:

      PrimeThread p = new PrimeThread();
      p.start();
      jTextField1.setVisible(false);
      jTextField2.setVisible(false);
      p.sleep(1000);
      jTextField1.setVisible(true);
      p.sleep(2000);
      jTextField2.setVisible(true);

      but this does not work. All of them appearing at same moment! I want them to appear with some delay one after another..
        • 1. Re: How to add time event to show jframe component one after another sequetial?
          fac586
          828752 wrote:
          I want to create the visual expression of merge sort to explain it.

          So what I want is first in textbox initial sequence of number. And the subsequently next state with some time delay sequentially.

          Can any one tell me how to do.
          I tried by creating Thread like:

          PrimeThread p = new PrimeThread();
          p.start();
          jTextField1.setVisible(false);
          jTextField2.setVisible(false);
          p.sleep(1000);
          jTextField1.setVisible(true);
          p.sleep(2000);
          jTextField2.setVisible(true);

          but this does not work. All of them appearing at same moment! I want them to appear with some delay one after another..
          Wrong forum. This appears to be Java- rather than APEX-related.