How to add time event to show jframe component one after another sequetial?
831755Jan 14 2013 — edited Jan 27 2013I 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..