Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

creating spurious messages - to slow down a program!

Posted on 2014-10-14
3
Medium Priority
?
125 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 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

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…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses

705 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