-
pause in java
i have a six weeks program and it is to print out a title screen and then a receipt. thing is, the title screen is the entire 80 x 26 of the dos box and it prints really quick and then goes straight to the receipt. i want it so the title screen pauses for a few seconds and then goes to the receipt. i just need something small to stick in.
-
try {
Thread.currentThread().sleep(3000);
}
catch (InterruptedException ex) {
ex.printStackTrace();
}
this will wait for 3000 miliseconds ( 3 seconds ).
Similar Threads
-
Replies: 2
Last Post: 06-14-2006, 03:16 PM
-
Replies: 1
Last Post: 05-13-2005, 06:46 AM
-
By Mike Tsakiris in forum .NET
Replies: 11
Last Post: 10-04-2002, 05:32 PM
-
By Anonymous in forum Java
Replies: 0
Last Post: 01-31-2002, 11:08 PM
-
By JJ in forum Enterprise
Replies: 1
Last Post: 07-06-2000, 04:50 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks