Solved

creating spurious messages - to slow down a program!

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

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
web services creation SOAP vs REST 5 57
Oracle SQL syntax check  without executing 6 76
sql import cannot be resolved jsp 3 50
junit as external jar or library 7 24
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

821 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