Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

creating spurious messages - to slow down a program!

Posted on 2014-10-14
3
Medium Priority
?
126 Views
Last Modified: 2014-10-14
Hi - this may amuse some experts. I have a java app which copies a file from x to y (to resolve a BDE problem, if interested). However it only takes a fraction of a second. It needs only run once, or an odd number of times, to work. My users tend to think it has not worked when they click  - so click again, reversing the fix and restoring the problem. I would like to have one of those timer things running, reading obscure nonsense like 'obfusticating' or 'cementing relationships' - anything to slow the process and make it appear to be doing something! Can anybody offer a quick and amusing dialog box, preferably with a nonsensical progress bar to make it look really complicated! Thanks!
0
Comment
Question by:ClaytonGlass
  • 2
3 Comments
 
LVL 19

Accepted Solution

by:
Montoya earned 1500 total points
ID: 40379706
try {
    Thread.sleep(1000);                 //1000 milliseconds is one second.
} catch(InterruptedException ex) {
    Thread.currentThread().interrupt();
}

But you could easily just return a message to the user that your code was successful. Right?

Cheers!
0
 

Author Closing Comment

by:ClaytonGlass
ID: 40379746
Thank you very much! Would like to have seen a progress bar but something for me to try at leisure!
0
 
LVL 19

Expert Comment

by:Montoya
ID: 40379807
You can display a beach ball, spinning wheel animated gif,.. etc.. while the timer is running.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This video teaches viewers about errors in exception handling.
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question