I already got this one...
System.out.println("Hi!");
Thread.sleep(3000);
System.out.println("How are you there!");
thnx for it!,...

Although, I tried it using dialogbox.,
JOptionPane.showMessageDialog(null,"Hi!");
Thread.sleep(3000);
JOptionPane.showMessageDialog(null,"How are you there!");

.,my question is...
why
Thread.sleep(3000);
doesn't work during the proccess.,
is
Thread.sleep(3000);
limited only???
if not,how can I apply this one while using dialogbox....

can you help me about this one pls....:)

yours truly,
alpe

How does it behave? Has JOptionPane.showMessageDialog an "OK" button? Waht did you expect to receive.
Perhaps you should use the syncronized keyword.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.