Solved

creating spurious messages - to slow down a program!

Posted on 2014-10-14
3
113 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:
Iammontoya earned 500 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:Iammontoya
ID: 40379807
You can display a beach ball, spinning wheel animated gif,.. etc.. while the timer is running.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
strDist challenge 35 84
word0 challenge 3 58
Unable to start eclipse ? 17 83
compre toata in where clue oracle 4 41
For customizing the look of your lightweight component and making it look lucid like it was made of glass. Or: how to make your component more Apple-ish ;) This tip assumes your component to be of rectangular shape and completely opaque. (COD…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now