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:
but this does not work. All of them appearing at same moment!
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:
Code:
PrimeThread p = new PrimeThread(); p.start(); jTextField1.setVisible(false); jTextField2.setVisible(false); p.sleep(1000); jTextField1.setVisible(true); p.sleep(2000); jTextField2.setVisible(true);
Comment