Solved

creating spurious messages - to slow down a program!

Posted on 2014-10-14
3
121 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
V.simple question about Android packages and libraries 1 46
jdbc error in jsp application 20 91
Android development question 2 108
Java array 10 86
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

734 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