Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

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

831755Jan 14 2013 — edited Jan 14 2013
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..
This post has been answered by fac586 on Jan 14 2013
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 11 2013
Added on Jan 14 2013
1 comment
172 views